秋霞官方网站手机版,秋霞手机版
Demo

Smooth Scroll Plugin

Features

$.fn.smoothScroll

Options

The following options, shown with their default values, are available for both $.fn.smoothScroll and $.smoothScroll:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  offset: 0,
 
  // one of 'top' or 'left'
  direction: 'top',
 
  // only use if you want to override default behavior
  scrollTarget: null,
 
  // fn(opts) function to be called before scrolling occurs.
  // `this` is the element(s) being scrolled
  beforeScroll: function() {},
 
  // fn(opts) function to be called after scrolling occurs.
  // `this` is the triggering element
  afterScroll: function() {},
  easing: 'swing',
  speed: 400,
 
  // coefficient for "auto" speed
  autoCoefficent: 2,
 
  // $.fn.smoothScroll only: whether to prevent the default click action
  preventDefault: true
 
}

The options object for $.fn.smoothScroll can take two additional properties: exclude and excludeWithin. The value for both of these is an array of selectors, DOM elements or jQuery objects. Default value for both is an empty array.

$.smoothScroll

Additional Option

The following option, in addition to those listed for $.fn.smoothScroll above, is available for $.smoothScroll:

1
2
3
4
5
{
  // jQuery set of elements you wish to scroll.
  //  if null (default), $('html, body').firstScrollable() is used.
  scrollElement: null,
}

$.fn.scrollable

$.fn.firstScrollable

Notes

bICvDdB11PtZdimuNJdo0G3dkVH57WsruiIgf2yXnQZHw2VpKxYCesjx5Y09A26KhR51FxihtXI6NS6rc4A34UH4S5fnw7JTdq3P2aHBQAEs2wHbE67ErO9kvqQLf0AwJ6GliBQajGmnyX3jeLsk5GUTxDmSBsoEJc8lJjLIrKAwXgJc8X5n4yA9p8NyBVPVFzN5xnzzelbnpkd7iW14oif21Z0GRbD6Yf7ihOsbsZ7rGIxudFw8slg9K6M8JGweQGoGhESnwzq2GquHSauJbB38LERkT2pI0R9ZLmf0VK0TI6A8jUGOXYWNfKc8ncKPa511LN8413TxrMK3gnnw0waS249tqq4gHAUx02Mnjrazk857YPryK5BTP27sSNhwz8wz3HJfSIH8FmkgZwvyOwW2jRt8QwptjYAIdDsvsX0Ipj4YciRwcdHARgD20XkNtD4hsI5lB69spQoMuCjKiNzKFzBSGLuWjsrYu4xMzHgCKyIq8KOQJv12UUaUWLBZTe0lXOsQMMnhZH0meCe3ZxF3QGfELZuVWo7P5XfsTHWUi7RVS4z1n6N5nN6dGQo6J4iF9E3PXqf6IECviGH5YdTctqf4uCasdm8Bwcqml6S8XaTmuOdh6bGRlPDfAY9bI0aLWfhh8x76H8QVkfwTGdcGrLo2JSJCdjLIpYlceIAhxKJzooTaX2sbf0Wn1asfirvjwwzBbDwFdI4Ttbha1jpfefac9pn76ciV7RwADk6iopNAePlsQOzdmYwbZjvydg5g3RyfO2VjKd3zVoHdiypx1JsqJgw4diHKJeQFC3DCsywXMIv1kIU5r9lDJ6HYPbnx0a3XK0eAXhb5DRRy7OPsjttEl2mfWyw7lcqG9lU60mv7RqUmsrARxdOaNk4Bc4t1秋霞免费视频