Skip to content

Instantly share code, notes, and snippets.

@jforaker
Created April 23, 2014 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jforaker/11220833 to your computer and use it in GitHub Desktop.
Save jforaker/11220833 to your computer and use it in GitHub Desktop.
scrollable config
scrollable: {
fps: 'auto',
direction : 'vertical',
directionLock: true,
indicators: false,
momentumEasing: {
momentum: {
acceleration: 30, // how slowly it stops - high # = stops less
friction: 0.7 // stick factor
},
bounce: {
acceleration: 50,
springTension: 1 //how slow the bounce effect is - low = slow
}
},
// seeing the area "behind" container
outOfBoundRestrictFactor: 0.5
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment