2.2.6 • Published 2 years ago

react-animate-children v2.2.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

React Animate Children · PRs Welcome

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 IntersectionObserver api

Installation

npm i react-animate-children

Usage

import AnimateChildren from 'react-animate-children'

const Test = () => {
  return (
    <AnimateChildren>
      <div>Hello World</div>
    </AnimateChildren>
  )
}

Props

PropertyTypeDefaultRequiredDescription
childrenReact Node(s)nullYesChildren components wrapped inside AnimateChildren
direction'left', 'right', 'up', 'down'downNoSpecifies the direction in which the component will get mounted
behaviour'scroll', 'auto'autoNoAuto will mount the children components once the page loads, scroll will load them when the children is visible on the screen
speednumber500NoSpecifies the time it will take to start the animation
offsetnumber50NoSpecifies how many pixels it will have as offset when the animation start

Credits

PRs are welcome!

2.2.6

2 years ago

2.2.5

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

2.2.1

2 years ago

2.1.14

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago