anima-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

anima-react

An animation wrapper component library for react

Installation

yarn add anima-react

# OR:

npm install anima-react

Basic usage

import { FadeIn, getIncrementor } from 'anima-react';

// return an incremented number on every call
const getDelay = getIncrementor(0, 0.15);

// Wrap your component and add an optional delay
<FadeIn orientation="up" delay={getDelay()}>
  <YourReactComponent />
</FadeIn>;

Components

FadeIn

name type default
delay number 0
orientation left right up down none left
distance number 10
duration number 0.2

ZoomIn

name type default
delay number 0
orientation left right up down none none
distance number 100
duration number 0.2

Develop

yarn install
yarn dev

Package Sidebar

Install

npm i anima-react

Weekly Downloads

13

Version

0.0.9

License

none

Unpacked Size

27.9 kB

Total Files

18

Last publish

Collaborators

  • nmauersberg