8000 GitHub - limess050/inflickity: Never-ending drag n' flick content
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

limess050/inflickity

 
 

Repository files navigation

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 forg 4BF1 et to update/init submodules to get the requestAnimationFrame polyfill

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

About

Never-ending drag n' flick content

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0