# react-global-animate-on-scroll

> Animations on scroll with react simply using animate.css lib and that component.

Latest version **1.0.4** (published 2023-06-14) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-06-14 |
| First published | 2023-06-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Lucas Koyama |
| Maintainers | lucaskoyama |
| Keywords | animate-on-scroll, react, animations, animate.css |

## Links

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

## Dependencies (3)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [animate.css](https://npm.io/package/animate.css.md) ^4.1.1

## 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.0.4 (latest) — 2023-06-14
- 1.0.3 — 2023-06-14
- 1.0.1 — 2023-06-14
- 1.0.0 — 2023-06-13

## README

# Globally animated elements on scroll with React!
https://github.com/lucasKoyama/react-global-animate-on-scroll/assets/121680414/c2cf2721-9835-4f2c-b1a7-9d51a543824d

[react-global-animate-on-scroll](https://www.npmjs.com/package/react-global-animate-on-scroll) is animations based on scroll in react made very simple!
## Installation
    npm i react-global-animate-on-scroll
## Usage
Import
```js
import AnimateOnScroll from 'react-global-animate-on-scroll';
```

Insert the component as the last component of App so it will have access to the entire DOM and its elements, just like the image below, the ```<AnimateOnScroll />``` is one line above the closing fragment ```</>```
![example](https://github.com/lucasKoyama/react-global-animate-on-scroll/assets/121680414/543aef1b-75a0-4dba-a035-625f3a3ef26c)
    
Add the class "animate__animated" for all animations and another animation that you liked from [animate.css](https://animate.style/)
```html
<h1 class="animate__animated animate__fadeInUp">An animated element</h1>
```

The component have a boolean prop called "animateOnce" to decide if the animations is gonna happen just for the first time or everytime. Default is set to "animateOnce=false"
```js
<AnimateOnScroll animateOnce/>
```

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