# reveal-animations

> Scroll reveal animations for Vue project

Latest version **0.0.20** (published 2021-08-02) · 0 weekly downloads

## Install

```sh
npm install reveal-animations
pnpm add reveal-animations
yarn add reveal-animations
bun add reveal-animations
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.20 |
| Published | 2021-08-02 |
| First published | 2021-08-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 14.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | gianlucavedovato |

## Links

- npm: https://www.npmjs.com/package/reveal-animations
- npm.io page: https://npm.io/package/reveal-animations

## Dependencies (5)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [gsap](https://npm.io/package/gsap.md) ^3.6.1
- [vuex](https://npm.io/package/vuex.md) ^3.4.0
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [vue-router](https://npm.io/package/vue-router.md) ^3.2.0

## Recent versions

- 0.0.20 (latest) — 2021-08-02
- 0.0.19 — 2021-08-02
- 0.0.18 — 2021-08-02
- 0.0.17 — 2021-08-02
- 0.0.16 — 2021-08-02
- 0.0.15 — 2021-08-02

## README

# vue-accordion
Vue directive for reveal animations based on Intersection Observer.
## Installation
```
npm i vue-reveal-animations
```
or
```
yarn add npm i vue-reveal-animations
```

Then you can install your plugin globally with
```
...
import revealAnimations from 'vue-reveal-animations'

Vue.directive('reveal-animations', revealAnimations)
...
```
or locally
```
...
import revealAnimations from 'vue-reveal-animations'

export default {
  ...
  directives: {
    revealAnimations
  },
  ...
}
...
```
## Usage
Use as directive with object props as bind.
```
<div v-reveal-animations="options">
  ...
</div>
```

## Options
| Parameter | Required | Type                       | Default         | Description                                                                                                                                                            |
|-----------|----------|----------------------------|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| type      |          | String                     | 'fade-in'       | Animation type. Available animations: 'fade-in', 'slide-in', 'custom'. If type is 'custom' you have to set initialState and finalState as an object of css properties. |
| offset    |          | Number                     | 0.5             | Intersection observer offset                                                                                                                                           |
| target    |          | DOM Node \|\| CSS Selector | current element | Target of animation                                                                                                                                                    |
| duration  |          | Number                     | 1.2             | Duration of animation                                                                                                                                                  |
| ease      |          | String                     | 'expo.out'      | Type of ease. Based on GSAP Eases documentation > https://greensock.com/docs/v3/Eases                                                                                  |

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