
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-scroll-animation
Advanced tools
React component to animate elements on scroll with [animate.css](https://daneden.github.io/animate.css/).
React component to animate elements on scroll with animate.css.
npm install react-scroll-animation --save
import ScrollAnimation from 'react-scroll-animation';
<ScrollAnimation animateIn="fadeIn">
// ...
</ScrollAnimation>
offset - default 100
The "viewport" is by default 150 pixels from the bottom of the screen. When part of an element is within the "viewport", animateIn is triggered. This size of the "viewport" can be overridden by setting the offset property.
animateIn - default slideInUp
Any css animation defined against a class, be it from animate.css. The Animation triggers when the element enters the "viewport" (see offset property for more details on this).
animateOut
Any css animation defined against a class, be it from animate.css. The Animation triggers when the element is leaving the "viewport" (see offset property for more details on this).
time - default 1
Animation duration in seconds.
animateOnce - default false
Whether the element should only animate once or not.
style - default {}
A style object can be assigned to any ScrollAnimation component and will be passed to the rendered dom element. Its probably best to avoid manually setting animationDuration or opacity as the component will modify those attributes.
scrollParent
By default the code checks to see if the element is visible within the window. This can be changed to any other parent element of the ScrollAnimation by adding a element pointing to the parent that you wish to use.
for example:
import ScrollAnimation from 'react-scroll-animation';
<ScrollAnimation
animateIn="fadeIn"
scrollParent={document.getElementByClassNames['xxx'][0]}
>
// ...
</ScrollAnimationanimateIn="fadeIn">
npm run dist / yarn dist
git clone https://github.com/Jackyzm/react-scroll-animation.git
cd react-scroll-animation
npm install
npm start
FAQs
React component to animate elements on scroll with [animate.css](https://daneden.github.io/animate.css/).
We found that react-scroll-animation 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.