JSPM

react-animations

0.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 35829
    • Score
      100M100P100Q131596F
    • License MIT

    A collection of animations for inline styles

    Package Exports

    • react-animations
    • react-animations/lib/bouceOut
    • react-animations/lib/bounce
    • react-animations/lib/bounceIn
    • react-animations/lib/bounceInDown
    • react-animations/lib/bounceInLeft
    • react-animations/lib/bounceInRight
    • react-animations/lib/bounceInUp
    • react-animations/lib/bounceOutDown
    • react-animations/lib/bounceOutLeft
    • react-animations/lib/bounceOutRight
    • react-animations/lib/bounceOutUp
    • react-animations/lib/fadeIn
    • react-animations/lib/fadeInDown
    • react-animations/lib/fadeInDownBig
    • react-animations/lib/fadeInLeft
    • react-animations/lib/fadeInLeftBig
    • react-animations/lib/fadeInRight
    • react-animations/lib/fadeInRightBig
    • react-animations/lib/fadeInUp
    • react-animations/lib/fadeInUpBig
    • react-animations/lib/fadeOut
    • react-animations/lib/fadeOutDown
    • react-animations/lib/fadeOutDownBig
    • react-animations/lib/fadeOutLeft
    • react-animations/lib/fadeOutLeftBig
    • react-animations/lib/fadeOutRight
    • react-animations/lib/fadeOutRightBig
    • react-animations/lib/fadeOutUp
    • react-animations/lib/fadeOutUpBig
    • react-animations/lib/flash
    • react-animations/lib/flip
    • react-animations/lib/flipInX
    • react-animations/lib/flipInY
    • react-animations/lib/flipOutX
    • react-animations/lib/flipOutY
    • react-animations/lib/headShake
    • react-animations/lib/hinge
    • react-animations/lib/jello
    • react-animations/lib/lightSpeedIn
    • react-animations/lib/lightSpeedOut
    • react-animations/lib/merge
    • react-animations/lib/pulse
    • react-animations/lib/rollIn
    • react-animations/lib/rollOut
    • react-animations/lib/rotateIn
    • react-animations/lib/rotateInDownLeft
    • react-animations/lib/rotateInDownRight
    • react-animations/lib/rotateInUpLeft
    • react-animations/lib/rotateInUpRight
    • react-animations/lib/rotateOut
    • react-animations/lib/rotateOutDownLeft
    • react-animations/lib/rotateOutDownRight
    • react-animations/lib/rotateOutUpLeft
    • react-animations/lib/rotateOutUpRight
    • react-animations/lib/rubberBand
    • react-animations/lib/shake
    • react-animations/lib/slideInDown
    • react-animations/lib/slideInLeft
    • react-animations/lib/slideInRight
    • react-animations/lib/slideInUp
    • react-animations/lib/slideOutDown
    • react-animations/lib/slideOutLeft
    • react-animations/lib/slideOutRight
    • react-animations/lib/slideOutUp
    • react-animations/lib/swing
    • react-animations/lib/tada
    • react-animations/lib/wobble
    • react-animations/lib/zoomIn
    • react-animations/lib/zoomInDown
    • react-animations/lib/zoomInLeft
    • react-animations/lib/zoomInRight
    • react-animations/lib/zoomInUp
    • react-animations/lib/zoomOut
    • react-animations/lib/zoomOutDown
    • react-animations/lib/zoomOutLeft
    • react-animations/lib/zoomOutRight
    • react-animations/lib/zoomOutUp

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-animations) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    react-animations

    A collection of animations for CSS-in-JS libraries. react-animations implements all animations from animate.css, allowing you to use them in any project that uses JavaScript for style management. Check out the interactive demo.

    Usage

    These animations can be used with Radium, Aphordite, or any other CSS-in-JS library that supports using objects to define keyframes. Just import the animation from the package and include it in your style definition. Below are some examples using a few popular styling libraries.

    Radium

    import { bounce } from 'react-animations';
    import Radium from 'radium';
    
    const styles = {
      bounce: {
        animation: 'x 1s',
        animationName: Radium.keyframes(bounce, 'bounce')
      }
    }

    Aphrodite

    import { bounce } from 'react-animations';
    import { StyleSheet, css } from 'aphrodite';
    
    const styles = StyleSheet.create({
      bounce: {
        animationName: bounce,
        animationDuration: '1s'
      }
    })

    Animations

    Below is a list of all available animations

    bouceOut bounce bounceIn bounceInDown bounceInLeft bounceInRight bounceInUp bounceOutDown bounceOutLeft bounceOutRight bounceOutUp fadeIn fadeInDown fadeInDownBig fadeInLeft fadeInLeftBig fadeInRight fadeInRightBig fadeInUp fadeInUpBig fadeOut fadeOutDown fadeOutDownBig fadeOutLeft fadeOutLeftBig fadeOutRight fadeOutRightBig fadeOutUp fadeOutUpBig flash flip flipInX flipInY flipOutX flipOutY headShake hinge jello lightSpeedIn lightSpeedOut pulse rollIn rollOut rotateIn rotateInDownLeft rotateInDownRight rotateInUpLeft rotateInUpRight rotateOut rotateOutDownLeft rotateOutDownRight rotateOutUpLeft rotateOutUpRight rubberBand shake slideInDown slideInLeft slideInRight slideInUp slideOutDown slideOutLeft slideOutRight slideOutUp swing tada wobble zoomIn zoomInDown zoomInLeft zoomInRight zoomInUp zoomOut zoomOutDown zoomOutLeft zoomOutRight zoomOutUp

    Merge

    react-animations also exports a merge function that takes two animations and returns a new animation that combines the transforms from both. This is experimental and wont work (well) with animations that have conflicting transforms, such as fadeIn and fadeOut. The merged animation can be used just like any of the imported animations.

    import { merge, tada, flip } from 'react-animations';
    const tadaFlip = merge(tada, flip);