0.1.12 • Published 1 year ago

react-element-transitions v0.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Alt Text

react-element-transitions

A custom component that can be used to add pre-defined transitions or animations with any React Element using CSS Keyframes. This package also gives you the access to overwrite the animations properties for customized transitions with huge list of animations .

Usage

You can import each animation directly from the main package

import { Transit } from 'react-element-transitions'

Using Animations

<Transit name="BOUNCE" interationCount={10} duration={'0.5'} timing={'linear'} >
  <button>Animated Button</button>
</Transit>

Transit - props

AttributeTypeDefaultDescriptionExample
namestringNAName of the animation typeCheck Animation list
durationstring"1"Duration of the single animation frame"1" to "1000"
timingstring"ease-in-out"Timing function of animationlinear ,ease ,ease-in, ease-out, ease-in-out
interationCountnumber1Number of times animation will repeat1 to 1000
onlyHoverbooleanfalseApply animation on hover onlyfalse OR true

Animations List

Below are the list for available animations

WIGGLE

FADE

BOUNCE

SLIDE-RIGHT

SLIDE-BOTTOM

SLIDE-LEFT

SLIDE-TOP

ROTATE-LEFT

ROTATE-RIGHT

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago