Single purpose classes to help you orchestrate CSS animations
I made this project to help me get more out of my animations. It's inspired by tachyons and intended to be an extension of the toolkit. There are NO animation keyframes, only single purpose classes that control:
- animation-play-state :
- animation-iteration-count :
Let's say you use Animate.css (not required) for your animations but you want to stagger a few animations with a delay, or you want to tweak the duration, or run it in reverse.
tachyons-animate helps you with this.
Base: a = animation duration d = animation delay Modifiers 1 = 1st step (150ms) 2 = 2nd step (300ms) 3 = 3rd step (450ms) 4 = 4th step (600ms) 5 = 5th step (750ms) 6 = 6th step (900ms) -1 = literal value 1s -2 = literal value 2s -3 = literal value 3s
To add a 300ms delay to an element's animation, you'd simply add
.d2. To change the duration to 400ms, add
.a4. If you want to play it in reverse, add
<div class="animated fadeIn a4 d2 reverse"></div>
If the linear timing function is too boring for you, we've included additional bezier curves to help you out. Here's the whole list:
- Host on CDN
- Make public NPM package