Skip to content

jordangray/css-animation-utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

CSS animation utilities

Useful JavaScript snippets related to CSS animation.

isAnimationSupported

Determine if a particular property can be animated with either transitions or keyframe animation.

Parameters

property
The property to test.
from
A valid starting value for the animation.
to
A valid ending value for the animation.
element (optional)
The element to test with. (Required for testing properties with prerequisites, e.g. "top" requires non-static position.)

Example use

isAnimationSupported('background', 'red', 'green');

About

Useful JS snippets for CSS animation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published