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

@fauzitech/motionkit

v0.1.0

Published

Lightweight React animation presets — 50+ animations in <5KB. No Framer Motion needed.

Readme

motionkit

Lightweight React animation presets — 50+ animations in <5KB. CSS-based, no Framer Motion needed.

Features

  • 🎯 50+ presets — fade, slide, scale, bounce, rotate, flip, zoom, and more
  • 🪶 <5KB gzipped — CSS animations, no JS animation loop
  • 🎨 Stagger support — animate children sequentially
  • 👁️ Viewport trigger — animate on scroll with IntersectionObserver
  • Reduced motion — respects prefers-reduced-motion
  • 🔧 TypeScript first-class support
  • 📱 Mobile-safe — works everywhere

Installation

npm install @fauzitech/motionkit

Quick Start

import { Motion } from '@fauzitech/motionkit';

function App() {
  return (
    <Motion preset="fadeInUp" duration={500}>
      <h1>Hello World</h1>
    </Motion>
  );
}

Usage

Basic Animation

<Motion preset="fadeInUp" duration={500}>
  <div>I fade in from below</div>
</Motion>

Stagger Children

<Motion preset="fadeInUp" stagger={100}>
  <div>Item 1</div>  {/* 0ms delay */}
  <div>Item 2</div>  {/* 100ms delay */}
  <div>Item 3</div>  {/* 200ms delay */}
</Motion>

Trigger on Scroll

<Motion preset="fadeInUp" triggerOnView>
  <div>I animate when scrolled into view</div>
</Motion>

Custom Element

<Motion preset="slideInLeft" as="section" className="hero">
  <div>I'm a section element</div>
</Motion>

All Options

<Motion
  preset="bounceIn"        // Animation preset
  duration={500}            // Duration in ms
  delay={200}               // Delay in ms
  easing="ease-out"         // Easing function
  fillMode="both"           // Fill mode
  iterations={1}            // Play count ('infinite' for loop)
  stagger={100}             // Stagger children by N ms
  triggerOnMount={true}     // Trigger on mount
  triggerOnView={false}     // Trigger on viewport enter
  threshold={0.1}           // IntersectionObserver threshold
  as="div"                  // Element type
  className="my-class"      // CSS class
  style={{ color: 'red' }}  // Inline styles
  onComplete={() => {}}     // Animation complete callback
>
  <div>Content</div>
</Motion>

Presets

Fade

fadeIn fadeOut fadeInUp fadeInDown fadeInLeft fadeInRight fadeOutUp fadeOutDown fadeOutLeft fadeOutRight

Slide

slideInUp slideInDown slideInLeft slideInRight slideOutUp slideOutDown slideOutLeft slideOutRight

Scale

scaleIn scaleOut scaleInCenter scaleOutCenter

Bounce

bounceIn bounceOut bounceInUp bounceInDown bounceInLeft bounceInRight

Rotate

rotateIn rotateOut rotateInCenter rotateOutCenter

Flip

flipInX flipInY flipOutX flipOutY

Zoom

zoomIn zoomOut zoomInUp zoomInDown

Special

shakeX shakeY swing tada wobble jello heartbeat flash rubberBand headShake

Hooks

useInView

import { useInView } from '@fauzitech/motionkit';

function Section() {
  const { ref, isInView } = useInView({ threshold: 0.2 });
  
  return (
    <div ref={ref}>
      {isInView && <div>I'm visible!</div>}
    </div>
  );
}

useStagger

import { useStagger } from '@fauzitech/motionkit';

function List() {
  const delays = useStagger(5, 100); // 5 items, 100ms stagger
  
  return (
    <ul>
      {delays.map((style, i) => (
        <li key={i} style={style}>Item {i + 1}</li>
      ))}
    </ul>
  );
}

Utilities

getAnimationCSS

Get CSS animation string for manual use:

import { getAnimationCSS } from '@fauzitech/motionkit';

const animation = getAnimationCSS('fadeInUp', { duration: 500, delay: 200 });
// → "mk-fadeInUp 500ms ease 200ms 1 both"

getPresets

Get all available presets:

import { getPresets } from '@fauzitech/motionkit';

const allPresets = getPresets();
// → ['fadeIn', 'fadeOut', ...]

Preset Groups

import { presets } from '@fauzitech/motionkit';

presets.fade;    // ['fadeIn', 'fadeOut', ...]
presets.slide;   // ['slideInUp', ...]
presets.bounce;  // ['bounceIn', ...]
// ... more groups

Comparison

| Feature | motionkit | Framer Motion | react-spring | |---------|-----------|---------------|--------------| | Bundle size | <5KB | 170KB+ | 45KB+ | | CSS-based | ✅ | ❌ | ❌ | | Stagger | ✅ | ✅ | ✅ | | Viewport trigger | ✅ | ✅ | ❌ | | Reduced motion | ✅ | ✅ | ❌ | | Learning curve | Low | High | Medium |

License

MIT © Muhammad Fauzi Azhar