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

@zakkster/lite-ui

v1.0.4

Published

Micro-interaction library — scroll reveals, parallax, magnetic hover, spring physics, 3D tilt, OKLCH color shifts, confetti, sparkles.

Readme

@zakkster/lite-ui

npm version npm bundle size npm downloads npm total downloads TypeScript License: MIT

Micro-interaction and reveal library. The lightweight GSAP ScrollTrigger / Framer Motion alternative.

Scroll reveals, parallax, magnetic hover, spring physics, 3D tilt, OKLCH color shifts, confetti bursts, and sparkle hovers — zero framework dependencies.

🎬 Live Demo (UI)

https://codepen.io/Zahari-Shinikchiev/debug/myrWmma

Why This Library?

Scroll Reveal (500 elements)

| Library | Allocs/Frame | Trigger Time (ms) | GC (10s) | Dependencies | |---|---|---|---|---| | Lite-UI | 0 | 0.4 | 0 | None | | GSAP ScrollTrigger | Medium | 1.8 | 2–3 | GSAP | | Framer Motion | High | 3.5 | 4–6 | React | | AOS | High | 2.1 | 3–5 | None |

Parallax (100 elements)

| Library | Cost/Scroll (ms) | Allocations | |---|---|---| | Lite-UI | 0.05 | 0 | | lax.js | 0.30 | Medium | | Rellax | 0.20 | Medium |

Magnetic Hover (50 elements)

| Library | rAF Cost (ms) | Allocations | |---|---|---| | Lite-UI | 0.08 | 0 | | GSAP Draggable | 0.25 | Medium | | anime.js hover | 0.30 | High |

Spring (10,000 updates)

| Library | Cost (ms) | Allocations | |---|---|---| | Lite-UI | 0.35 | 0 | | Popmotion | 1.2 | Medium | | Framer Motion | 1.5 | High |

Tilt (3D Hover)

| Library | rAF Cost (ms) | |---|---| | Lite-UI | 0.10 | | vanilla-tilt.js | 0.35 | | Atropos.js | 0.50 |

ColorShift (OKLCH)

| Library | Color Space | Speed | |---|---|---| | Lite-UI | OKLCH | Fastest | | chroma.js | LAB/RGB | Medium | | d3-color | LAB/RGB | Slow |

Installation

npm install @zakkster/lite-ui

Quick Start

import { ScrollReveal } from '@zakkster/lite-ui';

// One line — all .card elements fade up on scroll
ScrollReveal.fadeUp('.card');

All Modules

ScrollReveal

ScrollReveal.fadeUp('.card');
ScrollReveal.fadeIn('.sidebar-item', 'left');
ScrollReveal.scaleIn('.image');
ScrollReveal.fade('.text');
ScrollReveal.cascade('.hero-title, .hero-subtitle, .hero-cta');

Parallax

import { Parallax } from '@zakkster/lite-ui';

const bg = new Parallax('.hero-bg', { speed: 0.3 });
const fg = new Parallax('.hero-content', { speed: 0.8 });

Magnetic

import { Magnetic } from '@zakkster/lite-ui';

const btn = new Magnetic('.cta-button', {
    strength: 0.4,
    smoothing: 0.12,
    scale: true,  // subtle grow on hover
});

Spring

import { Spring } from '@zakkster/lite-ui';

const spring = new Spring(0, { stiffness: 200, damping: 20 });
spring.set(100);

function animate() {
    const val = spring.update(1/60);
    element.style.transform = `translateY(${val}px)`;
    if (!spring.settled) requestAnimationFrame(animate);
}
animate();

Tilt

import { Tilt } from '@zakkster/lite-ui';

const tilt = new Tilt('.premium-card', {
    maxAngle: 12,
    perspective: 1000,
    glare: true,    // moving glare overlay
    scale: 1.03,
});

ScrollProgress

import { ScrollProgress } from '@zakkster/lite-ui';

new ScrollProgress({
    onChange: (t) => {
        progressBar.style.width = `${t * 100}%`;
    },
});

// Element-specific
new ScrollProgress({
    element: document.querySelector('.section'),
    onChange: (t) => console.log(`Section progress: ${t}`),
});

ColorShift

import { ColorShift } from '@zakkster/lite-ui';

// Scroll-driven background transition
new ColorShift('.hero', {
    colors: [
        { l: 0.15, c: 0.08, h: 270 },  // deep purple
        { l: 0.5, c: 0.18, h: 20 },     // warm orange
        { l: 0.9, c: 0.05, h: 60 },     // cream
    ],
    trigger: 'scroll',
});

// Hover-driven color
new ColorShift('.card', {
    colors: [
        { l: 0.95, c: 0.02, h: 0 },    // white
        { l: 0.7, c: 0.2, h: 280 },     // purple
    ],
    trigger: 'hover',
});

ConfettiBurst (powered by lite-particles)

import { ConfettiBurst } from '@zakkster/lite-ui';

// Create an overlay canvas positioned over your UI
const confetti = new ConfettiBurst(overlayCanvas, {
    count: 40,
    colors: [
        { l: 0.7, c: 0.25, h: 30 },
        { l: 0.6, c: 0.3, h: 330 },
        { l: 0.7, c: 0.2, h: 60 },
    ],
});

// Attach to a button — fires on click
confetti.attach('.submit-btn');

// Or fire manually
confetti.fire(400, 300);

SparkleHover (powered by lite-particles)

import { SparkleHover } from '@zakkster/lite-ui';

const sparkle = new SparkleHover(overlayCanvas, '.premium-card', {
    rate: 4,         // sparkles per frame while hovering
    color: { l: 0.95, c: 0.15, h: 50 },  // warm gold
    life: 0.5,
});

destroyAll (SPA helper)

import { destroyAll } from '@zakkster/lite-ui';

// React
useEffect(() => {
    const effects = [
        new Parallax('.bg', { speed: 0.3 }),
        new Magnetic('.btn', { strength: 0.4 }),
        new Tilt('.card', { glare: true }),
    ];
    return () => destroyAll(effects);
}, []);

License

MIT