Author: | dusthazard |
---|---|
Views Total: | 673 views |
Official Page: | Go to website |
Last Update: | January 27, 2017 |
License: | MIT |
Preview:

Description:
Gruuvy.js is a lightweight (4kb minified) JavaScript library for creating fast animations and easing effects that allow to animate an element’s style from x to y.
Built-in animation/easing types:
- linear
- easeInQuad
- easeOutQuad
- easeInOutQuad
- easeInCubic
- easeOutCubic
- easeInOutCubic
- easeInQuart
- easeOutQuart
- easeInOutQuart
- easeInQuint
- easeOutQuint
- easeInOutQuint
- easeInSine
- easeOutSine
- easeInOutSine
- easeInCirc
- easeOutCirc
- easeInOutCirc
- easeInBack
- easeOutBack
- easeInOutBack
- easeInElastic
- easeOutElastic
- easeInOutElastic
- easeInBounce
- easeOutBounce
- easeInOutBounce
Basic usage:
Load the following JavaScript file into your html document and the Gruuvy.js is ready for use.
<script src='gruuvy.js'></script>
Animate a specified element using the animate method as shown below:
- elem: element to be animated
- style: CSS style to run the animation on
- options: possible options and callbacks
Gruuvy.animate(elem,styles,options);
All possible options and callback functions.
// time in ms how long the animation will take duration: 450, // aniamtion type style: 'linear', // callback function for when animation is complete callback: false