npm.io
1.0.6 • Published 4 years ago

easy-react-animation

Licence
ISC
Version
1.0.6
Deps
1
Size
80 kB
Vulns
0
Weekly
0

easy-react-animation

easy react animation gif

In the project directory, you can run:

yarn add easy-react-animation

or

npm i easy-react-animation

Mouse Response

You can import Mouse Animation animation directly from the main package

import { MouseResponse } from 'easy-react-animation'

Usage

<MouseResponse depth={low || medium || high}>
 <div>
    <h2>Your amazing component here</h2>
 </div>
</MouseResponse>

Props

Depth

OPTIONAL

You can easily set the depth intensity by setting the 'depth' prop at the Mouse Response compononent

DEFAULT VALUE = LOW

Text Animation

You can also import each Text Animation directly from the main package

import { Flipping } from 'easy-react-animation'

Usage

    <Flipping text="Flipping" className="yourClassName"  style={yourInlineStyle} color="yourColor" accessibilityFriendly=true />

Props

Text

REQUIRED

To set your text

className

OPTIONAL

To apply your CSS style

style

OPTIONAL

To apply your inline style

color

OPTIONAL

To apply your text color (RGB or hex)

accessibilityFriendly

OPTIONAL

To make it readable to screen readers

Animations

Below is a list of all available animations

MouseResponse
Enter
Fading
Filling
Flipping
Folding
Karaoke
Rolling
Scaling
Spinning