animate-inview
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Animate Inview

A react component that animates when it comes into view.

Setup

yarn add animate-inview

Example

import Animated from "animate-inview"

const initial = { opacity: 0 , scale: .5}
const animated = { opacity: 1, scale: 1}

<Animated initial={initial} animated={animated} />
  <div>
    <h3>Header</h3>
    <p>Body</p>
  </div>
</Animated>

Technologies

Project is created with:

  • react-intersection-observer
  • framer-motion
  • typescript

Readme

Keywords

Package Sidebar

Install

npm i animate-inview

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

10.3 kB

Total Files

15

Last publish

Collaborators

  • hmongkey12