Description
Shifty is a tweening engine for TypeScript, the code that moves a value smoothly from one state to another over time for animations. The project describes it as a lightweight library meant to be wrapped by higher-level animation tools. Its core gives you playback control of an individual tween, extensibility hooks at key points in the tween lifecycle, and Promise support for async and await code. It is tuned to add as little processing and memory overhead as possible. Shifty exposes a UMD module, so you can load it in the way that suits your project. It officially supports Evergreen browsers, Safari and Node 10 and above. Version 2 also supported Internet Explorer, and its legacy docs remain in the v2 branch. The README includes Jest troubleshooting: newer versions of Jest can print warnings, and a shouldScheduleUpdate setting in the test setup prevents them. The developer says the library will always be free and open source, and asks users who find it useful to consider a donation.…
Highlights
- Playback control for each tween
- Hooks at points in the tween lifecycle
- Promise support for async and await
- UMD module that loads in several ways
- Works in Evergreen browsers, Safari and Node 10+
Ratings & Reviews
No ratings yet
Be the first to rate Shifty.
People also visit
Unity Tweens
An extremely light weight, extendable and customisable tweening engine made…
Shifty FAQ
What is Shifty?
A tweening engine for TypeScript that animates values over time. It is meant to sit underneath higher-level animation tools.
Can I await an animation?
Yes. Shifty supports Promises, so you can use async and await with your tweens.
Which environments are supported?
Evergreen browsers, Safari and Node 10 and above. Internet Explorer was supported in version 2 only.
Is Shifty free?
The project says it will always be free and open source, and it asks users who get value from it to consider a donation.
Why does Jest show warnings with Shifty?
Newer Jest versions can print warnings. The README says to use shouldScheduleUpdate in your test setup to prevent them.
What are the best Shifty alternatives?
Popular alternatives to Shifty include Tween.js, Unity Tweens and Engine. See all Shifty alternatives



