Gathering detailed insights and metrics for @marionebl/react-web-animation
Gathering detailed insights and metrics for @marionebl/react-web-animation
Gathering detailed insights and metrics for @marionebl/react-web-animation
Gathering detailed insights and metrics for @marionebl/react-web-animation
React components for the Web Animations API - http://react-web-animation.surge.sh
npm install @marionebl/react-web-animation
Typescript
Module System
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
299 Stars
159 Commits
25 Forks
8 Watchers
14 Branches
9 Contributors
Updated on Mar 04, 2025
Latest Version
0.7.2
Package Id
@marionebl/react-web-animation@0.7.2
Unpacked Size
205.77 kB
Size
43.53 kB
File Count
47
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
3
33
react-web-animation is a set of React components that expose the Web Animations API in a declarative way.
Check out how you can use it here - http://react-web-animation.surge.sh
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!
Want to know more about the Web Animations API? Here are some great resources.
react-web-animation requires the following peer dependencies to be installed
1npm install react 2npm install react-dom 3npm install prop-types
1npm 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.
1<script src="https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.2.1/web-animations-next.min.js"></script>
<Animated.[componentName]>
e.g. <Animated.div>
and control play state (play, pause, stop, reverse)<Animation>
and control play state (play, pause, stop, reverse)<AnimationGroup>
, controlling them with one timeline<AnimationSequence>
, controlling them with one timelineCreating an animated element is as simple using an <Animated.[elementName]>
component and supplying keyframes
and a timing
config.
1import React, { Component } from 'react'; 2import { Animated } from 'react-web-animation'; 3 4 5export default class Basic extends Component { 6 7 getKeyFrames() { 8 return [ 9 { transform: 'scale(1)', opacity: 1, offset: 0 }, 10 { transform: 'scale(.5)', opacity: 0.5, offset: 0.3 }, 11 { transform: 'scale(.667)', opacity: 0.667, offset: 0.7875 }, 12 { transform: 'scale(.6)', opacity: 0.6, offset: 1 } 13 ]; 14 } 15 16 getTiming( duration ) { 17 return { 18 duration, 19 easing: 'ease-in-out', 20 delay: 0, 21 iterations: 2, 22 direction: 'alternate', 23 fill: 'forwards' 24 }; 25 } 26 27 render() { 28 return 29 <Animated.div keyframes={this.getKeyFrames()} 30 timing={this.getTiming(2500)}> 31 Web Animations API Rocks 32 </Animated.div>; 33 } 34} 35
For more advanced usage, head over to the source documentation or check out the http://react-web-animation.surge.sh
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/26 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
162 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More