- Interpolation of
Numbers over time (tweening)
- Playback control of an individual tween
- Extensibility hooks for key points in the tweening process
This is useful because it is the least amount of functionality needed to build customizable animations. Shifty is optimized to run many times a second with minimal processing and memory overhead, which is necessary to achieve smooth animations.
npm install --save shifty
Shifty officially supports Evergreen browsers, Safari, and Node. If you encounter a browser-specific bug, please open an issue about it!
Shifty is compatible with IE11 (possibly older versions as well), but you
will need to provide your own polyfills for it to work. If you are using
https://polyfill.io/, you just need the
es6 features enabled:
Here's a polyfilled demo of Shifty that works with IE11. Please see [issue
113](https://github.com/jeremyckahn/shifty/issues/113) for background on
First, install the dependencies via npm like so:
Once those are installed, you can generate
npm run build
To run the tests:
To generate the documentation (
npm run doc
To generate live documentation in your browser:
npm run doc:live
Shifty exposes a UMD module, so you can load it however you like:
// CommonJSconst shifty = ;shifty;
Please see the Getting Started guide and check out the API documentation.
Take a peek at the Network page to see all of the Shifty contributors.
Shifty is distributed under the MIT license. You are encouraged to use and modify the code to suit your needs, as well as redistribute it.