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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-animators

v1.0.2

Published

A collection of React animation components

Downloads

3

Readme

React Animators

npm version License: MIT

Description

React Animation Library is a collection of reusable React animation components designed to enhance user interfaces with dynamic animations.

Installation

You can install React Animation Library via npm:

npm install react-animators

Usage

Import the animation components into your React application and start animating your elements:

import React from 'react';
import { Animator } from 'react-animators';

const App = () => {
  return (
    <div>
      <Animator animationType='fadeIn' delay={500} duration={1000}>
        <h1>FadeIn Animation</h1>
      </Animator>
      <Animator animationType='bounce' delay={1000} duration={500}>
        <h1>Bounce Animation</h1>
      </Animator>
    </div>
  );
};

export default App;

Available Animations

  • FadeIn: Fade in animation where the element gradually becomes visible by increasing its opacity.
  • FadeOut: Fade out animation where the element gradually becomes invisible by decreasing its opacity.
  • Bounce: Bounce animation where the element scales up and down, creating a bouncing effect.
  • ZoomIn: Zoom in animation where the element gradually scales up in size.
  • ZoomOut: Zoom out animation where the element gradually scales down in size.
  • RotateClockwise: Rotate clockwise animation where the element rotates in a clockwise direction.
  • RotateAntiClockwise: Rotate anti-clockwise animation where the element rotates in an anti-clockwise direction.
  • SlideLeft: Slide left animation where the element moves horizontally to the left.
  • SlideRight: Slide right animation where the element moves horizontally to the right.
  • SlideUp: Slide up animation where the element moves vertically upwards.
  • SlideDown: Slide down animation where the element moves vertically downwards.
  • Pulse: Pulse animation where the element scales up and down rhythmically, creating a pulsating effect.
  • Flash: Flash animation where the element quickly fades in and out, creating a flashing effect.
  • Shake: Shake animation where the element shakes horizontally back and forth.
  • FlipX: Flip on X-axis animation where the element flips horizontally.
  • FlipY: Flip on Y-axis animation where the element flips vertically.
  • RollIn: Roll in animation where the element rolls into view from the side.
  • RollOut: Roll out animation where the element rolls out of view to the side.

Props

| Name | Type | Description | | ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | animationType | AnimationType | Required: The type of animation to apply. Supported types are: 'fadeIn', 'fadeOut', 'bounce', 'zoomIn', 'zoomOut', 'rotateClockwise', 'rotateAntiClockwise', 'slideLeft', 'slideRight', 'slideUp', 'slideDown', 'pulse', 'flash', 'shake', 'flipX', 'flipY', 'rollIn', 'rollOut'. | | delay | number | Optional delay before the animation starts (ms). | | duration | number | Optional duration of the animation (ms). |

License

This package is licensed under the MIT License. See the LICENSE file for details.

Author

Created by Abhijeet Vadera.