🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

anima-react

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anima-react

### An animation wrapper component library for react

0.0.9
latest
Source
npm
Version published
Weekly downloads
13
-48%
Maintainers
1
Weekly downloads
 
Created
Source

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

nametypedefault
delaynumber0
orientationleft right up down noneleft
distancenumber10
durationnumber0.2

ZoomIn

nametypedefault
delaynumber0
orientationleft right up down nonenone
distancenumber100
durationnumber0.2

Develop

yarn install
yarn dev

Keywords

react

FAQs

Package last updated on 10 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts