# animate-on-scroll-framer

> A scroll animation library. This simplifies the process of animating jsx elements on scroll intersection.

Latest version **1.3.0** (published 2023-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install animate-on-scroll-framer
pnpm add animate-on-scroll-framer
yarn add animate-on-scroll-framer
bun add animate-on-scroll-framer
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2023-09-01 |
| First published | 2022-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 737 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Michael Essiet |
| Maintainers | shogun2077 |
| Keywords | animation, scroll, animate, reactAnimationOnScroll, react, framer, react, animation |

## Links

- npm: https://www.npmjs.com/package/animate-on-scroll-framer
- Repository: https://github.com/michaelessiet/animate-on-scroll-framer
- Homepage: https://github.com/michaelessiet/animate-on-scroll-framer#readme
- Issues: https://github.com/michaelessiet/animate-on-scroll-framer/issues
- npm.io page: https://npm.io/package/animate-on-scroll-framer

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 1.3.0 (latest) — 2023-09-01
- 1.2.6 — 2023-08-28
- 1.2.5 — 2023-08-28
- 1.2.4 — 2023-08-28
- 1.2.3 — 2023-08-28
- 1.2.2 — 2023-08-28
- 1.2.1 — 2023-08-28
- 1.2.0 — 2023-08-28
- 1.0.5 — 2022-06-25
- 1.0.3 — 2022-06-25
- 1.0.2 — 2022-06-25
- 1.0.0 — 2022-06-25

## README

<h1 align="center">Animate On Scroll Framer</h1>
<h3 align="center">An open source scroll reveal animation package made for React Web</h3>

<br/>

Animate On Scroll Framer is an open source scroll reveal animation package made for React Web using tools such as framer motion. 

It's easy to install and get started with:

## Installation
```bash
npm install animate-on-scroll-framer 
```
and that's it it's installed in your React node_modules. No need for other packages or css libraries.

## Usage
Using the package in your project is as straight forward as can be.
```javascript
import {AnimateOnScroll} from 'animate-on-scroll-framer' //that's all you need to import 

export function Component(){
  return (
    <AnimateOnScroll animation="flipIn">
      <h1>I appear with a cool animation called flipIn</h1>
    </AnimateOnScroll>
  )
}
```
by default the flipIn animation has a duration of 1 second while the other animations have a default duration of 0.4 seconds. The default delay for all animations is 0.5 seconds. 

Both of those and more can be changed by adding them to AnimateOnScroll as props:
```javascript
<AnimateOnScroll duration={4} delay={3} aniamtion="flipIn">
  <h1>I have a longer duration and delay than my friend up top</h1>
</AnimateOnScroll>
```

## Props
- **animation** : This prop is compulsory it is used to select the animation to be used
- **duration**: This is an optional prop that allows you to modify the duration of the animation. Values numbers and represent seconds
- **delay**: This is an optional prop that allows you to modify the delay of the animation. Values are numbers and represent seconds
- **animateEachChild**: For now this prop only applies to the flipIn animation. It is an optional prop which has a boolean value
- **spring**: This is another optional prop, it's used to switch on or off the spring effect in animations. It is switched on by default

#### License
Animate On Scroll Framer is under the MIT License.

---
_Source: https://npm.io/package/animate-on-scroll-framer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
