# memtive-interactive

> A rendering engine for interactive components created in After Effects

Latest version **0.0.2** (published 2021-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install memtive-interactive
pnpm add memtive-interactive
yarn add memtive-interactive
bun add memtive-interactive
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2021-05-15 |
| First published | 2021-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | abhishekpratapa |
| Maintainers | abhishekpratapa |

## Links

- npm: https://www.npmjs.com/package/memtive-interactive
- Repository: https://github.com/worksheet-ai/memtive-interactive
- npm.io page: https://npm.io/package/memtive-interactive

## Dependencies (3)

- [gsap](https://npm.io/package/gsap.md) ^3.6.1
- [node-sass](https://npm.io/package/node-sass.md) ^6.0.0
- [lottie-web](https://npm.io/package/lottie-web.md) ^5.7.8

## Recent versions

- 0.0.2 (latest) — 2021-05-15
- 0.0.1 — 2021-05-15

## README

# memtive-interactive

> A Component Library for interactive animations created in After Effects, Uses BodyMovin, Lottie and GASP for the rendering engine

[![NPM](https://img.shields.io/npm/v/memtive-interactive.svg)](https://www.npmjs.com/package/memtive-interactive) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Example

Here's an [example](https://worksheet-ai.github.io/memtive-interactive/) of the library

## Install

```bash
npm install --save memtive-interactive
```

## Usage

#### ScrollAnimation

The `ScrollAnimation` component loads JSON keyframe animations, a scroll event controls the playback of the animation

```jsx
import React, { Component } from 'react'

import { ScrollAnimation } from 'memtive-interactive'
import animation from './animation.json'

class Example extends Component {
  render() {
    return (
      <ScrollAnimation
        data={animation}
        scrollArea={5000} />
    );
  }
}

export default Example;
```
##### Props

| Props | Type | Default Value | Description |
| --- | --- | --- | --- |
| data [required] | `JSON` | `<none>` | Json exported from the BodyMovin plugin from After Effects  |
| scroll [optional] | `Integer` | `1000` |  The scroll distance for the animation playback in pixels |

## License

MIT © [abhishekpratapa](https://github.com/abhishekpratapa)

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