1.0.0 • Published 3 years ago

mui-jackinbox v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Mui-JackinBox

A Material-UI component that wraps animate.css

Installation

npm install mui-jackinbox --save

or

yarn add mui-jackinbox

Demo

See the demo to get moving today:

link here

Reference

Component Props

PropTypeOptionsDefaultDescription
namestringsee belowemptyAnimation Name
animatebooleantruthy | falsytrueBegin animate
hideUntilAnimatebooleantruthy | falsyfalseShould hide element until animate evaluates true
noDisplayUntilAnimatebooleantruthy | falsyfalseElement will not display until animate evaluates true
hideAfterAnimatebooleantruthy | falsyfalseShould hide element after animation ends
noDisplayAfterAnimatebooleantruthy | falsyfalseElement will not display after animation ends
speedstringslower | slow | fast | fasterundefinedAnimation speed. A null value will result in "normal" speed, or 1s. Default speeds are 3s when slower, 2s when slow, 800ms when fast, and 500ms when faster.
delayboolean | numbertruthy | falsy | 1 | 2 | 3 | 4 | 5falseDelay the animation start. A number used here represents a delay in seconds. A truthy value will result in a 1 second delay. A falsy value equates to no delay.
repeatboolean | numbertruthy | falsy | 1 | 2 | 3falseRepeat the animation. A number used here represents the number of repetitions. A truthy value will result in a single repetition. A falsy value equates to no repetition.
infinitebooleantruthy | falsyfalseRepeat animation indefinitely.
speedBystring1s, ...1sFactor speed by an interval. Ex. <JackinBox name="fadeIn" speed="slow" speedBy="2s" /> would yield a 4 second animation.
delayBystring1s, ...1sFactor delay by an interval. Ex. <JackinBox name="fadeIn" delay={2} delayBy="2s" /> would yield a 4 second delay prior to animation.
repeatBystring1s, ...1sFactor repeat by an interval. Ex. <JackinBox name="fadeIn" repeat={2} repeatBy={2} /> would yield a animation that is repeated 4 additional times.
onAnimationStartfunction...undefinedA function to run once animation begins.
onAnimationEndfunction...undefinedA function to run once animation ends.
prefixstringcss prefixanimate__Change css prefix. Untested.

Animation Names

bounce | flash | pulse | rubberBand | shakeX | shakeY | headShake | swing | tada | wobble | jello | heartBeat | backInDown | backInLeft | backInRight | backInUp | backOutDown | backOutLeft | backOutRight | backOutUp | bounceIn | bounceInDown | bounceInLeft | bounceInRight | bounceInUp | bounceOut | bounceOutDown | bounceOutLeft | bounceOutRight | bounceOutUp | fadeIn | fadeInDown | fadeInDownBig | fadeInLeft | fadeInLeftBig | fadeInRight | fadeInRightBig | fadeInUp | fadeInUpBig | fadeInTopLeft | fadeInTopRight | fadeInBottomLeft | fadeInBottomRight | fadeOut | fadeOutDown | fadeOutDownBig | fadeOutLeft | fadeOutLeftBig | fadeOutRight | fadeOutRightBig | fadeOutUp | fadeOutUpBig | fadeOutTopLeft | fadeOutTopRight | fadeOutBottomRight | fadeOutBottomLeft | flip | flipInX | flipInY | flipOutX | flipOutY | lightSpeedInRight | lightSpeedInLeft | lightSpeedOutRight | lightSpeedOutLeft | rotateIn | rotateInDownLeft | rotateInDownRight | rotateInUpLeft | rotateInUpRight | rotateOut | rotateOutDownLeft | rotateOutDownRight | rotateOutUpLeft | rotateOutUpRight | hinge | jackInTheBox | rollIn | rollOut | zoomIn | zoomInDown | zoomInLeft | zoomInRight | zoomInUp | zoomOut | zoomOutDown | zoomOutLeft | zoomOutRight | zoomOutUp | slideInDown | slideInLeft | slideInRight | slideInUp | slideOutDown | slideOutLeft | slideOutRight | slideOutUp

1.0.0

3 years ago

0.1.0

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago