new Snap(cfg)
a snap plugin for xscroll,wich support vertical and horizontal snap.
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfg |
object |
|
Extends
Members
-
staticSnap.pluginIdstring
-
a pluginId
Methods
-
staticSnap.pluginDestructor()
-
detroy the plugin
-
staticSnap.pluginInitializer(){Snap}
-
plugin initializer
-
staticSnap.render(){Snap}
-
render snap plugin
-
staticSnap.snapTo(col, row, duration, easing, callback){Snap}
-
scroll to a col and row with animation
Name Type Description colnumber col-index rownumber row-index durationnumber duration for animation ms easingstring easing for animation callbackfunction callback function after animation -
staticSnap.snapToCol(col, duration, easing, callback){Snap}
-
scroll to a col with animation
Name Type Description colnumber col-index durationnumber duration for animation ms easingstring easing for animation callbackfunction callback function after animation -
staticSnap.snapToRow(row, duration, easing, callback){Snap}
-
scroll to a row with animation
Name Type Description rownumber row-index durationnumber duration for animation ms easingstring easing for animation callbackfunction callback function after animation