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

eglador-ui-react-text-reveal

v1.0.0-alpha.2

Published

Letter-by-letter text reveal animations for React — pure CSS, zero runtime dependencies, Tailwind v4 friendly

Downloads

64

Readme

eglador-ui-react-text-reveal

npm version npm downloads license zero runtime deps tailwind v4 react 19 typescript

Letter-by-letter text reveal animations for React — pure CSS keyframes, zero runtime dependencies, SSR-safe, Tailwind v4 friendly, and respects prefers-reduced-motion out of the box.

Features

  • 36 built-in variants — fade · cinematic-blur · decode · slide-up · neon-flicker · flip-x · typewriter · elastic · drop-bounce · wave · skew · spotlight · shatter · stretch-y · flip-y · color-burst · focus-pull · wind-scatter · liquid-fill · cyber-glitch · long-shadow · sonar-pulse · squash-stretch · ghost-float · origami-unfold · magnetic-snap · outline-trace · spin-3d · pendulum · laser-snap · heartbeat · elevator · magnifier · starburst · lantern-flicker · water-ripple
  • Pure CSS animations — no framer-motion, no animation engine
  • Zero runtime depsclsx and tailwind-merge are pre-bundled
  • SSR-safe — keyframes injected on client mount; final text renders on the server with aria-label so screen readers announce it once
  • Accessiblerole="text", aria-label, letters are aria-hidden, @media (prefers-reduced-motion: reduce) disables animation
  • Color-neutral — animations operate on opacity / transform / blur and inherit color from your styles. Works on any background
  • TypeScript-first — typed variant union

Installation

npm install eglador-ui-react-text-reveal

Peer dependencies: react ^19 · react-dom ^19 · tailwindcss ^4

Quick Start

import { TextReveal } from "eglador-ui-react-text-reveal";

export function Hero() {
  return (
    <TextReveal
      variant="cinematic-blur"
      staggerDelay={150}
      className="text-6xl font-light tracking-widest text-white"
    >
      ARVENIS
    </TextReveal>
  );
}

Variants

| Variant | Description | |---|---| | fade | Baseline opacity reveal | | cinematic-blur | Scale-down + blur-to-zero reveal | | decode | Cycles random characters before settling on the target (JS-driven) | | slide-up | Masked translate-from-below | | neon-flicker | Multi-flash opening with currentColor glow | | flip-x | 3D rotateX fold-up | | typewriter | Step opacity reveal (for full typing/cursor behavior use eglador-ui-react-typewriter) | | elastic | Scale-up with overshoot | | drop-bounce | Fall-from-top with bounce | | wave | Looping vertical wave (decorative) | | skew | skewX + translate entry | | spotlight | Soft fade with travelling light pulse | | shatter | Letters assemble from random 3D positions | | stretch-y | scaleY(4) vertical squash to natural | | flip-y | 3D rotateY fold from the left edge | | color-burst | Quick amber flash then settles back to inherited color | | focus-pull | Camera-style focus pull (blur 20px → 0) | | wind-scatter | Letters arrive from random 2D positions and rotations | | liquid-fill | Outlined letters fill bottom-up with a gradient | | cyber-glitch | Cyberpunk RGB-shift glitch loop | | long-shadow | Drifting offset shadow (best on light backgrounds) | | sonar-pulse | Looping concentric glow pulse | | squash-stretch | Cartoon-style multi-step squash and stretch | | ghost-float | Continuous gentle float with blur fade-in | | origami-unfold | Paper-fold open from top-left corner | | magnetic-snap | Letters snap from random offsets to position | | outline-trace | Stroke traces the letter outline, fills on completion | | spin-3d | rotateX + rotateY + depth reveal | | pendulum | Rotational swing settling at vertical | | laser-snap | Wide-thin scan line snaps to glyph | | heartbeat | Looping red beat pulse | | elevator | Drop-in from above with a spring overshoot | | magnifier | Zoom-in from 6× with blur | | starburst | Letters crunch toward the center and explode outward | | lantern-flicker | Looping golden flicker (decorative, overrides color) | | water-ripple | Looping skew + cyan tint wave |

Props

| Prop | Type | Default | Description | |---|---|---|---| | children | string | — | The text to animate (string only) | | variant | TextRevealVariant | "fade" | Animation variant | | staggerDelay | number (ms) | 80 | Delay between consecutive letters | | duration | number (ms) | per-variant | Override animation duration | | startDelay | number (ms) | 0 | Delay before the first letter starts | | splitBy | "letter" \| "word" | "letter" | Split unit | | trigger | "mount" \| "viewport" | "mount" | Start on mount or when scrolled into view | | viewportThreshold | number | 0.1 | IntersectionObserver threshold (0–1) | | viewportRootMargin | string | "0px" | IntersectionObserver rootMargin | | onComplete | () => void | — | Fires once when the last letter finishes | | decodeChars | string | A–Z 0–9 @#$%&<>? | Character pool for the decode variant | | ariaLabel | string | children | Accessible name override | | className | string | — | Class on the wrapping <span> |

Replay

Use the React key prop to remount and restart the animation:

const [key, setKey] = useState(0);

<TextReveal key={key} variant="elastic">ARVENIS</TextReveal>
<button onClick={() => setKey((k) => k + 1)}>Replay</button>

Scroll trigger

Defer the animation until the element enters the viewport:

<TextReveal variant="cinematic-blur" trigger="viewport">
  ARVENIS
</TextReveal>

Tune with viewportThreshold (0–1) and viewportRootMargin (CSS string).

Sequencing with onComplete

const [showTagline, setShowTagline] = useState(false);

<TextReveal
  variant="cinematic-blur"
  onComplete={() => setShowTagline(true)}
>
  ARVENIS
</TextReveal>

{showTagline && (
  <TextReveal variant="fade" splitBy="word">
    A new chapter in motion
  </TextReveal>
)}

Custom decode characters

Replace the default character pool for the decode variant — binary, katakana, emoji, whatever you want:

<TextReveal variant="decode" decodeChars="01">
  HACKED
</TextReveal>

Development

npm install
npm run dev               # tsup watch mode
npm run build             # production build to dist/
npm run typecheck         # tsc --noEmit
npm run storybook         # Storybook dev (http://localhost:6006)
npm run build-storybook   # static Storybook export

Publishing

Publishing is automated via GitHub Actions. When a GitHub Release is created, the package is published to npm.

  1. Update version in package.json
  2. Commit and push
  3. Create a GitHub Release with a matching tag (e.g. v1.0.0)

Author

Kenan Gündoğan — https://github.com/kenangundogan

Maintained under Eglador

License

MIT