npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-easy-animate

v1.0.6

Published

animate react component using css classes with ease

Readme

react-easy-animate

A micro react component that lets you manage entry and exit animation of your react components using css classes with ease

npm version npm downloads license npm bundle size

Check the interactive example: https://devsrv.github.io/react-easy-animate-example/

📋 Features

  • Control entry & exit animation - css animation class to use when component appearing & disappearing
  • Animation delay & duration - manage animation delay and duration for both entry & exit animations
  • Hook into animationEnd events – access to all animation end events that you can act to

📥 Installation

Using npm:

$ npm i react-easy-animate --save

🧪 Usage

Basic Example

import React, { Component } from 'react';
import Animatable from 'react-easy-animate';

class Main extends Component {
    state = {
        show: true,
    }

    render() {
        return (
            <div className="col">
                <Animatable show={this.state.show}>
                    <p>Lorem ipsum dolor sit amet</p>
                </Animatable>
                
                <button type="button" 
                    onClick={() => this.setState((state) => ({show: !state.show}))}>
                    click
                </button>
            </div>
        )
    }
}

render(<Main />, document.getElementById('root'));

Example with animate.css

import React, { Component } from 'react';
import { render } from 'react-dom';
import Animatable from 'react-easy-animate';
require("animate.css");

export default class Main extends Component {
    state = {
        show: true,
        disabled: false
    }

    render() {
        return (
                <div className="col">
                    <Animatable 
                        show={this.state.show}
                        entryAnimation={["zoomIn"]}
                        exitAnimation={["zoomOutDown", "faster"]}
                        onExitAnimationEnd={() => this.setState({disabled: false})}
                        onEntryAnimationEnd={() => this.setState({disabled: false})}
                    >
                        <div className="card">
                            <div className="card-body">
                                <h5 className="card-title">Lorem ipsum dolor sit amet</h5>
                                <Animatable 
                                    entryAnimDelay="1s" 
                                    show={this.state.show}
                                >
                                    <p>Lorem ipsum dolor sit amet</p>
                                </Animatable>
                            </div>
                        </div>
                    </Animatable>

                    <button type="button" 
                        disabled={this.state.disabled} 
                        onClick={() => this.setState((state) => ({show: !state.show, disabled: true}))}>
                            {this.state.show? "HIDE" : "SHOW"}
                    </button>
                </div>
        )
    }
}

render(<Main />, document.getElementById('root'));

📚 API

Props

| Property | Type | Default | Required | Description | |-|:-:|:-:|:-:|-| |show|bool|undefined| ✓ |whether to show or hide the component. | | entryAnimation |array|zoomIn | | css classes responsible for animating the component when the component is appearing from a disappeared state| |exitAnimation|array|zoomOut| | css classes responsible for animating the component when the component is disappearing from a visible state| |onExitAnimationEnd|func|undefined| | function to call when the disappearing animation ends | |onEntryAnimationEnd|func|undefined| | function to call when the appearing animation ends | |entryAnimDelay|string|undefined| | css animation-delay value for the appearing animation | |entryAnimDuration|string|undefined| | css animation-duration value for the appearing animation | |exitAnimDelay|string|undefined| | css animation-delay value for the disappearing animation | |exitAnimDuration|string|undefined| | css animation-duration value for the disappearing animation |


👋🏼 Say Hi!

Leave a ⭐ if you find this package useful 👍🏼,

don't forget to let me know in Twitter