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-minemation

v0.1.0

Published

The react minemation easy separate text to a single line, animate text, number, images or something more.. This will help you to animate website like a pro.

Downloads

1

Readme

react-minemation

The react minemation easy separate text to a single line, animate text, number, images or something more.. This will help you to animate website like a pro.

Installation

$ npm i react-minemation

You can use different components for different types of animation. You can animate text, numbers, images... Only what you need is to import the right type of component.

Import:

import MinemationText from "react-minemation";
import MinemationNumber from "react-minemation";

Usage MinemationText

When you import it you need to add props text and magic will happen. This is only what you need to have separated text. Although you can add more props to include beautiful animation.

Simple use:

<MinemationText text="Lorem ipsum dolor sit..." />

With Animation

  <MinemationText
      text="Lorem ipsum dolor sit amet..."
      animationName="fromBottom"
      delay={1000}
      duration={1000}
    />

Animate name can be various: "fromBottom", "fromTop", "fromLeft", "fromRight"

Prop list:

  • text - Add random text
  • animationName - Check one animation from the list
  • delay - Every line start after another line (in ms)
  • duration - How long every animation will last (in ms)
  • fitWidth - Does the width of every line will be 100% of the parent container or as possible (true/false)
  • overflowHidden - Does animation will start from their line position or around the screen (true/false)
  • scroll - Does animation will start on scroll (true/false) / Default is to start when the top position enter the screen
  • windowHeight - require scroll to be true Animation will start when the top position of container will in that area of the screen (in view height 0-100 )
  • scrollRepeat - require scroll to be true When you scroll from bottom to start of website and container top position be under-screen bottom it will restart animation, so when you scroll down it will start again

Usage MinemationNumber

With counter component, you can choose one of 3 type styles. You can use a simple counter to your number or to random change every digit in your number(if it is higher than 9) or to every digit increase by one nth time of iteration.

Simple counter:

<MinemationNumber num={300} duration={5000} iteration={100}/>

Prop list:

  • num - Add random number
  • random - Use the random type of counter (Default is digited increase counter) (true/false
  • counter - Use counter type of counter (Default is digited increase counter) it will overwrite random props (true/false)
  • interval - It will set how long will take after each increase/decrease number (in ms)
  • duration - require random to be true How long numbers will randomly set (in ms)
  • iteration - require random and counter to be false (default options) How many times every digit will increase (in ms)
  • startNum - require a counter to be true Set what is starting number for counter (if it is higher than num it will be decreased)
  • scroll - Does animation will start on scroll (true/false) / Default is to start when the top position enter the screen
  • windowHeight - require scroll to be true Animation will start when the top position of the container will in that area of the screen (in view height 0-100 )
  • scrollRepeat - require to scroll to be true When you scroll from bottom to start of website and container top position be under-screen bottom it will restart animation, so when you scroll down it will start again

Tips

MinemationText component will fit the parent container. If you don't set the parent container well or you have some problem with width it can cause that you don't see text at all. Please check it again.