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

animate-reactor

v2.0.0

Published

A component that makes Animate.css a React Component

Readme

Animate Reactor

A component that makes Animate.css a React Component

npm package

Animate Reactor created to animate things with power of Animate.css. To use this component effectively, have a look this animation list.

Install

With NPM

npm install animate-reactor

With Yarn

yarn add animate-reactor

Usage

import Animate from 'animate-reactor'

const Component = () => {
  return (
    <Animate enter="shakeX" delay={3} speed="faster">
      Shake Me!
    </Animate>
  )
}

Storybook

To see Animate Reactor in action, visit Storybook page.

Enter and Exit

Animate Reactor can get two animation which triggers after each other. Which means, you can have a simple timeline with this. See on example.

<Animate enter="fadeIn" exit="fadeOut">
  Welcome and Good bye
</Animate>

Endless Animation

To create an endless animation use infinite prop.

<Animate enter="shake" infinite>
  Endless Shake!
</Animate>

An important note. If you use infinite prop, exit, onEnterEnd, onEachEnd props will be disabled since the enter animation never ends. This is not an Animate Reactor bug. This is a part of nature of CSS Animations.

If you want animation run certain times, use repeat prop instead. Unlike infinite, all props will be available to use. Includes exit, onEnterEnd, onEachEnd.

<Animate enter="heartBeat" repeat={3}>
  Beat three times and stop!
</Animate>

Power of callbacks

Animate Reactor let your callbacks have a place on each part of the animation process.

<Animate
  enter="bounce"
  exit="flash"
  onEachAction={() => console.log('Something happened')}
  onEachStart={() => console.log('Something started')}
  onEachEnd={() => console.log('Something ended')}
  onEnterStart={() => console.log('Enter animation started')}
  onEnterEnd={() => console.log('Enter animation ended')}
  onExitStart={() => console.log('Exit animation started')}
  onExitEnd={() => console.log('Exit animation ended')}>
  Endless Shake!
</Animate>

Custom CSS Support

You can get support of CSS to make your animations even stronger.

<Animate
  enter="bounce"
  style={{
    animationDelay: '10s',
    animationDuration: '1s',
    animationTimingFunction: 'ease-in-out',
  }}>
  I am powered by CSS.
</Animate>

Control Animate Manually

Via animate prop, you can prefer to start the animation by hand.

import React, { useState } from 'react'
import Animate from 'animate-reactor'

const AnimateMe = () => {
  const [animate, setAnimate] = useState(false)

  const toggleAnimate = () => setAnimate(!animate)

  return (
    <Animate enter="bounce" animate={animate} click={toggle}>
      Animate me on Click
    </Animate>
  )
}

Props References

enter

First animation. Pick one of animation list from the list.

exit

Second animation. This runs right after first animation.

infinite

Make the animation infinite (endless).

| Prop | Values | Default | | -------- | ---------- | ------- | | infinite | true/false | false |

repeat

Run animation certain time(s).

| Prop | Values | Default | | ------ | ------- | ------- | | repeat | 1, 2, 3 | null |

Note For more repeat, consider to use Custom CSS.

delay

Delay time before animation start. If you have both enter and leave animation, it will impact twice.

| Value | Values | | ----- | ------ | | 1 | 1s | | 2 | 2s | | 3 | 3s | | 4 | 4s | | 5 | 5s |

Note If those values wasn't enough, you can use inline CSS via style prop.

speed

Animation speed in string base.

| Value | Speed Time | | ------ | ---------- | | slow | 2s | | slower | 3s | | fast | 800ms | | faster | 500ms |

onEnterStart

Triggers when enter animation starts.

onEnterEnd

Triggers when enter animation ends.

onExitStart

Triggers when leave animation starts.

onExitEnd

Triggers when leave animation ends

onEachStart

Triggers when enter and leave animation starts.

onEachEnd

Triggers when enter and leave animation ends.

onEachAction

Triggers when enter and leave animations starts and ends.