react-web-animation alternatives and similar libraries
Based on the "UI Animation" category.
Alternatively, view react-web-animation alternatives based on common mentions on social networks and blogs.
-
react-motion
A spring that solves your animation problems. -
react-spring
A spring physics based React animation library. -
framer/motion
Open source, production-ready animation and gesture library for React -
react-flip-move
Effortless animation between DOM changes (eg. list reordering) using the FLIP technique. -
react-router-transition
Transitions built for react-router, powered by react-motion. -
react-gsap-enhancer
Use the full power of React and GSAP together. -
React Native Circle Menu
⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Made by @Ramotion -
react-motion-ui-pack
Wrapper component around React Motion for easier UI transitions. -
data-driven-motion
Easily animate your data in react. -
react-spark-scroll
Scroll-based actions and animations for react. -
react-mt-svg-lines
A React.js wrapper component to animate the line stroke in SVGs. -
react-track
Track the position of DOM elements. Create cool animations. -
react-atv-img
A port of @drewwilson’s atvImg (Apple TV 3D parallax effect) library in React. -
react-transitive-number
React component to apply transition effect to numeric strings, a la old Groupon timers. -
gooey-react
The gooey effect for React, used for shape blobbing / metaballs (0.5 KB) 🧽 -
react-parallax-component
Easiest way to add scroll parallax effect on the component. -
auto-size-transition
A component that scale dynamically according to the internal children size -
react-tsparticles
A lightweight component to easily create interactive particles animations
Get performance insights in less than 4 minutes
Do you think we are missing an alternative of react-web-animation or a related project?
README
react-web-animation
react-web-animation is a set of React components that expose the Web Animations API in a declarative way.
Demos
Check out how you can use it here - http://react-web-animation.surge.sh
Why?
Why use this over other animation libraries for React? react-web-animation uses the Web Animations API polyfill so eventually it will use the native browser implementation and not depend on any third-party animation frameworks or CSS. Chrome has the greatest support for these today and if you view the source on the demos, you can see it isn't using CSS at all!
Web Animations API
Want to know more about the Web Animations API? Here are some great resources.
Installation
react-web-animation requires the following peer dependencies to be installed
npm install react
npm install react-dom
npm install prop-types
npm install react-web-animation
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.
<script src="https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.2.1/web-animations-next.min.js"></script>
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.
import React, { Component } from 'react';
import { Animated } from 'react-web-animation';
export default class Basic extends Component {
getKeyFrames() {
return [
{ transform: 'scale(1)', opacity: 1, offset: 0 },
{ transform: 'scale(.5)', opacity: 0.5, offset: 0.3 },
{ transform: 'scale(.667)', opacity: 0.667, offset: 0.7875 },
{ transform: 'scale(.6)', opacity: 0.6, offset: 1 }
];
}
getTiming( duration ) {
return {
duration,
easing: 'ease-in-out',
delay: 0,
iterations: 2,
direction: 'alternate',
fill: 'forwards'
};
}
render() {
return
<Animated.div keyframes={this.getKeyFrames()}
timing={this.getTiming(2500)}>
Web Animations API Rocks
</Animated.div>;
}
}
Advanced Usage
For more advanced usage, head over to the source documentation or check out the http://react-web-animation.surge.sh
License
MIT
*Note that all licence references and agreements mentioned in the react-web-animation README section above
are relevant to that project's source code only.