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

kinetic-text-3d

v0.3.0

Published

3D kinetic typography React component with WebGL shaders, bloom glow, and mouse interaction

Readme

kinetic-text-3d

3D kinetic typography React component powered by Three.js. Features extruded text with WebGL shaders, bloom glow, film grain, mouse-reactive distortion, and a GSAP entrance animation.

kinetic-text-3d demo

Install

npm install kinetic-text-3d

Peer dependencies: react >= 18, react-dom >= 18

Quick Start

import { KineticText } from 'kinetic-text-3d';

function App() {
  return (
    <KineticText
      text="Hello World"
      width="100%"
      height="100vh"
    />
  );
}

Examples

Georgian text (uses bundled font)

<KineticText
  text="კოდი ხელოვნებაა"
  color="#ffffff"
  glowColor="#22d3ee"
  backgroundColor="#050505"
  glowIntensity={0.6}
  fontSize={1.67}
  width="100%"
  height="100vh"
/>

Custom font

<KineticText
  text="THE CODE IS THE CRAFT"
  fontUrl="/fonts/Helvetiker-Bold.ttf"
  fontSize={2.5}
  width="100%"
  height="100vh"
/>

Warm color theme

<KineticText
  text="FIRE"
  color="#fff5e6"
  glowColor="#ff6b2b"
  backgroundColor="#1a0a00"
  glowIntensity={1.2}
  fontSize={3}
  width="100%"
  height={500}
/>

Subtle / minimal

<KineticText
  text="minimal"
  color="#888888"
  glowColor="#aaaaaa"
  backgroundColor="#000000"
  glowIntensity={0.2}
  fontSize={1.2}
  width={600}
  height={300}
  style={{ borderRadius: 12 }}
/>

Embedded in a card

<div style={{ width: 400, height: 200, overflow: 'hidden', borderRadius: 16 }}>
  <KineticText
    text="CARD"
    glowColor="#a855f7"
    backgroundColor="#0f0520"
    glowIntensity={0.8}
    fontSize={2}
    width="100%"
    height="100%"
  />
</div>

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | text | string | (required) | The text to render in 3D | | fontUrl | string | Bundled Georgian font | URL to a .ttf or .otf font file. Supports any font with the characters in your text | | color | string | "#ffffff" | Base text color (any CSS hex) | | glowColor | string | "#22d3ee" | Rim lighting and mouse interaction glow color | | backgroundColor | string | "#050505" | Scene background color | | glowIntensity | number | 0.6 | Bloom glow strength. 0 = no bloom, 2 = very intense | | fontSize | number | 1.67 | Size of the 3D text in scene units. Larger = bigger letters | | width | string \| number | "100%" | Width of the canvas container. Number = pixels, string = CSS value | | height | string \| number | "100%" | Height of the canvas container. Number = pixels, string = CSS value | | className | string | — | CSS class applied to the wrapper <div> | | style | CSSProperties | — | Inline styles applied to the wrapper <div> |

Features

  • 3D extruded text — each letter is an individual Three.js mesh with bevel
  • Kinetic vertex shader — simplex noise distortion that reacts to mouse proximity
  • Rim lighting — edge glow in the fragment shader
  • Mouse interaction — letters attract toward cursor with liquid-melt distortion, and rotate to "look at" the mouse
  • Bloom post-processing — UnrealBloomPass for cinematic glow (adjustable via glowIntensity)
  • Film grain — subtle FilmPass for texture
  • GSAP entrance — letters fly in from random positions with staggered timing
  • Camera float — subtle sine-wave camera drift
  • Responsive — uses ResizeObserver, works in any container size
  • Custom fonts — load any TTF/OTF via fontUrl prop (converted at runtime via opentype.js)
  • Bundled Georgian font — NotoSansGeorgian-Bold included, works out of the box
  • Cleanup — properly disposes all Three.js resources on unmount

How It Works

The component creates a full Three.js scene inside a canvas element:

  1. Font loading — loads a TTF/OTF font via opentype.js and converts it to Three.js typeface format at runtime
  2. Text geometry — each character becomes a separate TextGeometry mesh for individual animation
  3. Custom shader — a ShaderMaterial with simplex noise in the vertex shader creates the distortion effect; the fragment shader adds rim lighting and mouse-proximity glow
  4. Post-processingEffectComposer applies UnrealBloomPass (glow) and FilmPass (grain)
  5. Animation looprequestAnimationFrame updates shader uniforms, letter rotations, and camera position every frame
  6. Mouse raycasting — mouse position is projected onto a 3D plane to drive shader distortion and letter rotation

Browser Support

Works in all browsers that support WebGL 2 (Chrome, Firefox, Safari 15+, Edge).

License

MIT