2.2.6 • Published 3 years ago
react-animate-children v2.2.6
React Animate Children · 
React Animate Children allows to add microinteractions to the mounting phase of components.
This library features IntersectionObserver so that the animation can start once the children are visible on the screen!
Features
- Compatible with
styled-components - Use of
IntersectionObserverapi
Installation
npm i react-animate-childrenUsage
import AnimateChildren from 'react-animate-children'
const Test = () => {
return (
<AnimateChildren>
<div>Hello World</div>
</AnimateChildren>
)
}Props
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| children | React Node(s) | null | Yes | Children components wrapped inside AnimateChildren |
| direction | 'left', 'right', 'up', 'down' | down | No | Specifies the direction in which the component will get mounted |
| behaviour | 'scroll', 'auto' | auto | No | Auto will mount the children components once the page loads, scroll will load them when the children is visible on the screen |
| speed | number | 500 | No | Specifies the time it will take to start the animation |
| offset | number | 50 | No | Specifies how many pixels it will have as offset when the animation start |
Credits
PRs are welcome!
2.2.6
3 years ago
2.2.5
3 years ago
2.2.3
3 years ago
2.2.2
3 years ago
2.2.1
3 years ago
2.1.14
3 years ago
2.1.12
3 years ago
2.1.11
3 years ago
2.1.8
3 years ago
2.1.7
3 years ago
2.1.6
3 years ago
2.1.5
3 years ago
2.1.4
3 years ago
2.1.3
3 years ago
2.1.2
3 years ago
2.1.1
3 years ago
2.1.0
3 years ago
2.0.9
3 years ago
2.0.8
3 years ago
2.0.7
3 years ago
2.0.6
3 years ago
2.0.5
3 years ago
2.0.4
3 years ago
2.0.3
3 years ago
2.0.2
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago