Description
React Animate On Scroll is an open-source React component that animates elements as they scroll into and out of view, using the Animate.css animation library. You wrap content in a ScrollAnimation component and choose an animation for entering, such as fadeIn or bounceInRight, and optionally one for leaving, such as fadeOut. Properties let you set the duration, add a delay before the animation starts, make an element visible from the beginning, run the animation only once, and attach callbacks that fire after an element has animated in or out. A scrollableParentSelector property lets animations work inside a scrollable container instead of the window, and animatePreScroll controls whether elements already in view on page load are animated. The demo site shows each property in action, and the source is on GitHub.…
Highlights
- Scroll-triggered animations using Animate.css
- Separate enter and exit animations
- Duration, delay and animate-once options
- Callbacks after animating in or out
- Works in scrollable containers
Ratings & Reviews
No ratings yet
Be the first to rate react-animate-on-scroll.
People also visit

react-animate-height
Lightweight React component for animating height using CSS transitions

react-scrollchor
A React component for scrolling to #hash links with smooth animations

react-waypoint
A React component to execute a function whenever you scroll to an element
react-animate-on-scroll FAQ
What does React Animate On Scroll do?
It provides a ScrollAnimation component that plays Animate.css animations when elements scroll into or out of view.
Which properties are available?
animateIn, animateOut, initiallyVisible, duration, delay, animateOnce, scrollableParentSelector, afterAnimatedIn, afterAnimatedOut and animatePreScroll.
Can it animate inside a scrolling div?
Yes, set scrollableParentSelector to the scrollable parent element.
Can I skip animation for elements visible on load?
Yes, the animatePreScroll property controls whether elements in view when the page loads are animated.
What are the best react-animate-on-scroll alternatives?
Popular alternatives to react-animate-on-scroll include rc-scroll-anim, react-scroll and react-scroll-trigger. See all react-animate-on-scroll alternatives




















