"Intuitive, powerful and performant tools for working with CSS animations in JavaScript. Powered by the Web Animations API. In your CSS: @keyframes rotate-small { ... } Then, in JS: The primary reason to play your animation with JS is because you get way more control over its playback: This is useful for when you want to have all your animation code in one place."
"Instead of getting an animation from the document's stylesheets, you can also import it directly from a CSS file. Note: @import rules won't be resolved in stylesheets imported in this way. More info."
"This library is fully compatable with native JS, but it also has full spec-compliant type support, including declaration files and source maps."
The library provides intuitive, powerful, and performant tools for working with CSS animations in JavaScript, powered by the Web Animations API. Animations can be defined in CSS with @keyframes and then controlled from JavaScript to gain finer playback control. Playing animations from JavaScript centralizes animation logic and simplifies maintenance. Animations can be imported directly from CSS files rather than retrieved from document stylesheets, although @import rules in imported stylesheets are not resolved. The library is compatible with native JavaScript and includes full spec-compliant type support with declaration files and source maps. Centralizing animation code ensures consistent playback behavior across components.
Read at GitHub
Unable to calculate read time
Collection
[
|
...
]