react-web-animation
react-web-animation is a set of React components that expose the Web Animations API in a declarative way.
Live Demo
http://react-web-animation.surge.sh/
Installation
react-web-animation requires the following peer dependencies to be installed
react-web-animation has a runtime dependency on the next
version Web Animations API polyfill.
The easiest way to get this is to grab it from cdnjs
and include it in your application.
Features
- Animate Single Elements with a
<Animated.[componentName]>
e.g.<Animated.div>
and control play state (play, pause, stop, reverse) - Animate Single Elements with a
<Animation>
and control play state (play, pause, stop, reverse) - Animate Multiple animations in parallel with a
<AnimationGroup>
, controlling them with one timeline - Animate Multiple animations serially with a
<AnimationSequence>
, controlling them with one timeline
Usage
Creating an animated element is as simple using an <Animated.[elementName]>
component and supplying keyframes
and a timing
config.