Keyframe Animation 1.x
Pure javascript animation manager similar to css animations with keyframes.
Get Started
Installation
via NPM
npm i keyframe-animation
via Yarn
yarn add keyframe-animation
Basic Usage
const KeyframeAnimation = ; const myAnimation = ;myAnimation // Similar to CSS Animations ; // Start the animationmyAnimation; // Stop the animationmyAnimation; // HTML<div id="myBox" style="width: 100px; height:2px; background-color: crimson;"></div>
How to use Keyframe Animation in React/React Native?
; Component { superprops; thiswidth = 100; } { ... ; } { return ... ; }
You can decrease the fps to improve the performance.
(50 - 40) is recommended for React/React Native.