Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
react-animated-components
Advanced tools
Because animations should be as easy as <Rotate>🥧</Rotate>
Built with Typescript. Just one dependency (styled-components
💅).
npm install --save react-animated-components
import { Rotate } from 'react-animated-components'
/** Pie is boring... let's animate it! **/
const BoringPie = () => <span>🥧</span>
/** Pie is more delicious when it's rotating **/
const RotatingPie = () => {
return (
<Rotate>
<BoringPie />
</Rotate>
)
}
jtschoonhoven.github.io/react-animated-components
<Rotate>
Props:
ccw
[boolean]: If true, rotates counter-clockwise (default false)Sub-components:
<RotateCw>
<RotateCcw>
<Fade>
Props:
out
[boolean]: If true, fades out and exits the DOM (default false)Sub-components:
<FadeIn>
<FadeOut>
<Slide>
Props:
up
[boolean]: Slide updown
[boolean]: Slide downleft
[boolean]: Slide leftright
[boolean]: Slide rightout
[boolean]: If true, slides out and exits the DOM (default false)Sub-components:
<SlideInDown>
<SlideInUp>
<SlideInLeft>
<SlideInRight>
<SlideOutDown>
<SlideOutUp>
<SlideOutLeft>
<SlideOutRight>
Animated components all accept the following optional properties.
[boolean]
Controls when the animation begins. Except for exit animations, this defaults to true and animations begin automatically on mount. Exit animations do not run until active
is set explicitly.
[number]
Delays the animation start by the given number of milliseconds.
[number]
The total duration (in milliseconds) of one iteration of the animation.
[string]
Defines how animations progress through each cycle. Accepts any valid value of the animation-timing-function
CSS property.
[number | "infinite"]
The number of times to loop the animation, or "infinite".
[() => void]
Callback function, called when animation is complete. Useful for garbage collecting components that have exited, or for composing complex chains of effects.
[() => void]
Callback function, called when animation begins. Useful for chaining delayed animations.
["inline-block" | "block"]
A shorthand to set the CSS "display" property. Do not use "inline" this cannot be animated. Any valid CSS display property is valid, but in practice you should use either "inline-block" (the default) or "block".
FAQs
Easy-as-pie CSS animations for React
The npm package react-animated-components receives a total of 20 weekly downloads. As such, react-animated-components popularity was classified as not popular.
We found that react-animated-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.