Never-ending drag n' flick content
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
request-animation-frame @ db50266
.gitmodules
README.mdown
index.html
inflickity.js
modernizr.min.js

README.mdown

Inflickity

Flick and swipe forever.

See demo nclud.github.com/inflickity

Custom widget created for nclud.com v3.

var myFlickity = new Inflickity( elem, {
  // options
  // you can overwrite these defaults as you like
  clones: 1,
  friction: 0.03,
  maxContactPoints: 3,
  offsetAngle: 0,
  onClick: undefined,
  animationDuration: 400,
  // basically jQuery swing
  easing: function( progress, n, firstNum, diff ) {
    return ( ( -Math.cos( progress * Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
  }
});

Requires

Clone from GitHub

Don't forget to update/init submodules to get the requestAnimationFrame polyfill

git clone https://github.com/nclud/inflickity.git
cd inflickity
git submodule update --init