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

animex

v1.0.3

Published

A super easy animation library for Reactjs

Downloads

9

Readme

animex

npm version

Getting Started

Get started by creating a new React Project.

What you'll need

  • Node.js version 18.0 or above:
    • When installing Node.js, you are recommended to check all checkboxes related to dependencies.

Create a React Project

Create a new React project using the Create React App.

npx create-react-app my-anime-project
cd my-anime-project

Or you can use Vite to create a react app

npm create vite@latest my-anime-project --template react
cd my-anime-project
npm install

You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.

The command also installs all necessary dependencies you need to run your React Project.

Install the animeX library

Run the following command in your project directory to install the animeX library

npm install animex

Or, if you prefer using Yarn:

yarn install animex

Setup your Project

Now, let's set up a simple animation using AnimeX. Open your src/App.js or src/App.tsx file and replace its contents with the following:

import React from 'react';
import Anime, { anime } from 'animex';

const App = () => {
  const props = {
    scale: [0.1, 0.9],
    autoplay: true,
    direction: 'normal',
    delay: anime.stagger(100),
    translateX: 250,
  };

  return (
    <div className="w-96 p-5 bg-gray-300 flex flex-col gap-2">
      <Anime {...props}>
        <div className="bg-red-200 p-2 w-24">Child 1</div>
        <div className="bg-red-200 p-2 w-24">Child 2</div>
      </Anime>
    </div>
  );
};

export default App;

Start your site

Run the development server:

cd my-anime-project
npm run start

The cd command changes the directory you're working with. In order to work with your newly created React site, you'll need to navigate the terminal there.

The npm run start command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.

Back to top ⬆️