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

re-ani-motion

v0.1.1

Published

A simple animation wrapper for making animation easier. So let's ani-motion

Downloads

6

Readme

Re-Ani-Motion

ReAniMotion is a flexible and customizable animation wrapper component for React. It allows you to easily add various types of animations to your React components, making your UI more engaging and dynamic. AniMotion provides a range of animation options and settings that you can configure to create eye-catching animations without the need for complex CSS or external animation libraries. It provides various animation types and customizable animation settings.

Usage

import { MouseOverMotion, EntryMotion } from 're-ani-motion';

<MouseOverMotion
  animationType="border"
  animationSettings={{ borderColor: 'blue', borderWidth: 1, duration: 0.3, delay: 0.1 }}
  className="custom-box"
  style={{ width: '100px', height: '100px' }}
>
  Hover Me
</MouseOverMotion>

MouseOverMotion

The MouseOverMotion component is a React component that enables smooth animations when hovering over an element.

EntryMotion

The EntryMotion component is a React component that enables smooth animations when page is visible.

List of Effects

Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge Badge

Props

  • animationType (string, default: 'border'): The type of animation to apply when hovering over the element.

  • animationSettings (object, default: {}): Animation settings specific to the chosen animation type.

  • className (string): Additional CSS class names for styling.

  • style (object): Inline styles for the component.

  • children (React nodes): Content to display within the MouseOverMotion component.

Available Animation Types And Settings

  • border: Changes border color and width.

    | Setting | Description | Default Value | |--------------|--------------------------------------------|---------------| | borderColor| Border color during animation | N/A | | borderWidth| Border width during animation | N/A | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • background: Changes background color.

    | Setting | Description | Default Value | |------------------|----------------------------------------|---------------| | backgroundColor| Background color during animation | N/A | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • scale: Applies a scaling effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | scaleFactor | Scaling factor during animation | 1.2 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • rotate: Applies a rotation effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | degrees | Degrees of rotation during animation | N/A | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • fade: Changes opacity (fade effect).

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | fadeValue | Opacity value during animation | N/A | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • colorChange: Changes text color.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | targetColor | Target text color during animation | #000 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0

  • slideUp: Slides the children up.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0

  • slideDown: Slides the children down.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0

  • slideLeft: Slides the children left.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0

  • slideRight: Slides the children right.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0

  • zoomIn: Zoom in the children.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | zoomCount | Number of times to animate (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0

  • zoomOut: Zoom out the children.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | zoomCount | Number of times to animate (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0

  • bounce: Applies bounce effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | bounceCount | Number of times it should bounce (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • spin: Applies spin effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • flip: Applies flip effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | flipCount | Number of times it should flip (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • elastic: Applies elastic effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | elasticityCount | Number of times it should show elasticity (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • pulse: Applies pulse effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | pulseCount | Number of times it should show pulse effect (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • blink: Applies blink effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | blinkCount | Number of times it should blink (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • shake: Applies shake effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | shakeCount | Number of times it should shake (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • zigzag: Applies zigzag effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | zigzagCount | Number of times it should zigzag (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • spring: Applies spring effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | springCount | Number of times it should spring (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • fadeIn: Applies fadeIn effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | fadeCount | Number of times it should fadeIn (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • fadeOut: Applies fadeOut effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | fadeCount | Number of times it should fadeOut (can use number or string='infinite') | 1 | | duration | Animation duration in seconds | 1 | | delay | Animation delay in seconds | 0 |

  • spinner: Add a spin loader effect.

    | Setting | Description | Default Value | |-----------------|----------------------------------------|---------------| | height | Height of the loader | 20 | | width | Width of the loader | 20 | | borderWidth | Border width of the loader | 4 | | circleColor | Color of the loader | rgba(0, 0, 0, 0.1) | | spinnerColor | Color of the loading spinner | #000 | | speed | Speed of the loader | 1 |