
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-animate-x
Advanced tools
A React implimentation of [Animate X](https://github.com/escaladesports/animate-x), a super small animation library for animating components, numbers, objects, and arrays.
A React implimentation of Animate X, a super small animation library for animating components, numbers, objects, and arrays.
With npm:
npm install --save react-animate-x
Or with Yarn:
yarn add react-animate-x
import Animate from 'react-animate-x'
...
<Animate from={0}, to={100}>
{state => (
<div style={{ transform: `translateX(${state}px)` }}>Animating!</div>
)}
</Animate>
The simplest way to apply easing to your animation is with the eases module, but any easing function will work.
import Animate from 'react-animate-x'
import { bounceOut } from 'eases'
...
<Animate
from={{
x: 0,
y: 0,
}}
to={{
x: 100,
y: 150,
}}
easing={bounceOut}>
{({ x, y }) => (
<div style={{ transform: `translate(${x}px, ${y}px)` }}>Animating!</div>
)}
</Animate>
| Prop | Description | Default |
|---|---|---|
| from | A number, object, or array to start tweening from | 0 |
| to | A number, object, or array to tween to (must match schema of "from") | 100 |
| duration | The number of milliseconds the animation should last | 1000 |
| easing | An easing function for the animation | function(time){ return time } |
| loop | Add this prop to loop the animation infinitely | false |
| onStart | A function that will be called every time the animation starts | n/a |
| onEnd | A function that will be called every time the animation ends | n/a |
| animating | Set to false to stop the animation | n/a |
FAQs
A React implimentation of [Animate X](https://github.com/escaladesports/animate-x), a super small animation library for animating components, numbers, objects, and arrays.
We found that react-animate-x demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.