Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

scroll-with-ease

Scroll an element into view with animation time and cubic bezier easing functions.

Usage

var scwease = require('scroll-with-ease');
scwease(element);

Timing and easing functions

You can pass in an animation time and an array of points to create a cubic bezier curve for easing.

scwease(element, 1500, [0.42, 0.0, 0.58, 1.0])

Also accepts familiar css timing functions: ease, linear, ease-in, ease-out, ease-in-out.

scwease(element, 1500, 'ease-out')

Defaults set to 750ms and 'ease'.

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published