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 πŸ™

Β© 2026 – Pkg Stats / Ryan Hefner

@eden_zxpzhang/ai-animator-react

v0.1.0

Published

🎨 Lightweight React animation library with 10+ presets

Readme

🎨 AI Animator

npm version GitHub stars License: MIT Build Status npm downloads

πŸš€ Lightweight React animation library - Create stunning animations with simple configs. AI-powered generation coming soon!


✨ Features

  • 🎯 Zero Config - Sensible defaults, works out of the box
  • πŸš€ Lightweight - Only 7.5KB gzipped
  • 🎨 10+ Presets - Ready-to-use animation presets
  • πŸ”§ TypeScript - Full type support with generated declarations
  • βš›οΈ React 18+ - Hooks-based modern API
  • πŸ€– AI Ready (Phase 2) - Natural language β†’ AnimationConfig

πŸš€ Quick Start

Installation

# Using npm
npm install @edenxpzhang/ai-animator-react

# Using yarn
yarn add @edenxpzhang/ai-animator-react

# Using pnpm
pnpm add @edenxpzhang/ai-animator-react

Basic Usage

import { Animator, AnimatorPresets } from '@edenxpzhang/ai-animator-react';

function App() {
  return (
    <Animator config={AnimatorPresets.fadeIn()}>
      <div className="card">
        Hello, AI Animator!
      </div>
    </Animator>
  );
}

Live Demo

πŸ‘‰ Try it online (StackBlitz)


🎨 Animation Presets

| Preset | Description | Example | |--------|-------------|---------| | fadeIn() | Fade in | opacity: 0 β†’ 1 | | fadeOut() | Fade out | opacity: 1 β†’ 0 | | slideInLeft() | Slide in from left | translateX(-100%) β†’ 0 | | slideInRight() | Slide in from right | translateX(100%) β†’ 0 | | slideInUp() | Slide in from top | translateY(-100%) β†’ 0 | | slideInDown() | Slide in from bottom | translateY(100%) β†’ 0 | | bounce() | Bounce effect | Spring-like animation | | pulse() | Pulse effect | Scale oscillation | | zoomIn() | Zoom in | scale(0) β†’ scale(1) | | zoomOut() | Zoom out | scale(1) β†’ scale(0) |


πŸ“– API Reference

<Animator> Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | config | AnimationConfig | required | Animation configuration object | | children | ReactNode | required | Element to animate | | className | string | '' | Additional CSS class | | style | CSSProperties | {} | Additional inline style |

AnimationConfig

interface AnimationConfig {
  type: 'fade' | 'slide' | 'scale' | 'rotate' | 'bounce' | 'pulse';
  direction?: 'left' | 'right' | 'up' | 'down';  // for slide type
  duration?: number;    // ms, default: 500
  delay?: number;      // ms, default: 0
  easing?: string;     // CSS easing, default: 'ease'
  repeat?: number;     // times, default: 1 (0 = infinite)
}

Presets with Custom Options

// All presets accept optional config overrides
<Animator config={AnimatorPresets.fadeIn({ duration: 1000, delay: 200 })}>
  <div>Slow fade in</div>
</Animator>

<Animator config={AnimatorPresets.slideInLeft({ duration: 800, repeat: 2 })}>
  <div>Slide with repeat</div>
</Animator>

🎯 Advanced Usage

Staggered Animations

function App() {
  const items = ['Item 1', 'Item 2', 'Item 3'];
  
  return (
    <div>
      {items.map((item, index) => (
        <Animator 
          key={item} 
          config={AnimatorPresets.fadeIn({ delay: index * 100 })}
        >
          <div className="item">{item}</div>
        </Animator>
      ))}
    </div>
  );
}

Conditional Animation

function App() {
  const [visible, setVisible] = useState(false);
  
  return (
    <>
      <button onClick={() => setVisible(!visible)}>Toggle</button>
      
      {visible && (
        <Animator config={AnimatorPresets.zoomIn()}>
          <div>Now you see me!</div>
        </Animator>
      )}
    </>
  );
}

πŸ—ΊοΈ Roadmap

βœ… Phase 1: MVP (Current)

  • [x] Core rendering engine
  • [x] CSS animation renderer
  • [x] React component wrapper
  • [x] 10+ animation presets
  • [x] TypeScript support
  • [x] npm package publish

πŸ€– Phase 2: AI Integration

  • [ ] OpenAI API integration
  • [ ] Natural language β†’ AnimationConfig
  • [ ] Real-time preview editor
  • [ ] Animation code generator

🌐 Phase 3: Ecosystem

  • [ ] Canvas/WebGL renderers for complex animations
  • [ ] Figma plugin
  • [ ] CLI tool for animation export
  • [ ] Vue components
  • [ ] Community template marketplace

🀝 Contributing

Contributions are welcome! Please feel free to submit a PR.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

MIT License - see LICENSE file for details


⭐ Show Your Support

Give a ⭐️ if this project helped you!


πŸ”— Links


Made with ❀️ by edenxpzhang