@darkimage/react-animate-hoc

1.0.8 • Public • Published

react-animate-hoc

Hoc pattern for animate components using the awesome animate.css library

NPM JavaScript Style Guide

Install

npm install --save @darkimage/react-animate-hoc

Demo Example and Documentation

you can watch the examples and the documentation at the DEMO WEBSITE

Basic Usage

import React from 'react'

import { withAnimated } from 'react-animate-hoc'
import "animate.css" //dont forget to include the awesome animate.css

//if you are using your own component specify the `props.style` and `props.className` property
const MyAnimatedComponent = withAnimated((props) =>{
  return 
    <div style={props.style} className={props.className}>
      I'm a bouncing Div
    </div>
},{
  animation: "bounceIn" //specify an animation name from animate.css
});

License

MIT © darkimage

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.8
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.8
    0
  • 1.0.6
    0
  • 1.0.5
    0

Package Sidebar

Install

npm i @darkimage/react-animate-hoc

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

61.8 kB

Total Files

7

Last publish

Collaborators

  • darkimage