scroll-animate
Animates elements by scroll position. Currently requires jQuery. Supports AMD.
Bower
scroll-animate is available through Bower.
bower install scroll-animate --save
Basic Usage
// Create a new instancevar scroll = ; scroll // Adds are chainable // GSAP's Tweens and Timelines ; // You can also call the 'update' method to manully update valueswindow;
Easing
You can specify any of the follow easing function to the default property
tweens:
- QuadIn
- QuadOut
- QuadInOut
- CubicIn
- CubicOut
- CubicInOut
- QuartIn
- QuartOut
- QuartInOut
- QuintIn
- QuintOut
- QuintInOut
- SineIn
- SineOut
- SineInOut
- ExpoIn
- ExpoOut
- ExpoInOut
- CircIn
- CircOut
- CircInOut
- ElasticIn
- ElasticOut
- ElasticInOut
- BounceIn
- BounceOut
- BounceInOut
License
scroll-animate is open-sourced software licensed under the MIT license
Release History
- v0.4.0 - Refactor and improved scroll smoothness
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.0 - Initial Release