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

v0.3.0

Published

The react minemation easily separates texts into a single line, animate text, number, images, or something more. This will help you to animate a website like a pro..

Downloads

1

Readme

react-minemation

The react minemation easily separates texts into a single line, animate text, number, images, or something more. This will help you to animate a 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,
  RandomCounter,
  DigitCounter,
  Counter,
} "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 your 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 the counter component, you can choose one of 3 typestyles. 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.

Every type of counter has some shareable props and some unique.

Shareable prop list:

  • num - Add your number
  • duration -How long numbers will randomly set (in ms)
  • scroll - Does animation will start on scroll (true/false) / Default is to start when the top position enter the screen
  • windowHeight -Animation will start when the top position of the container will in that area of the screen (in view height 0-100 ) / _ require scroll to be true _
  • scrollRepeat - 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 / require to scroll to be true

Simple counter:

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

Prop list:

  • startNum -Set what is starting number for counter (if it is higher than num it will be decreased)

Random counter:

<RandomCounter num={500} interval={50} duration={5000} />

Prop list:

  • interval - It will set how long will take after each increase/decrease number (in ms)

Digit counter (fadeIn):

<DigitCounter num={400} duration={2500} delay={200} loop={1} />

Prop list:

  • delay - How long you will delay the start of the animation (in ms)
  • loop - How many loop circles do you want to use (slot machine effect)

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.