Make your AI a shadcn expert

Pendulum Text

Letters dangle from invisible strings and swing as underdamped pendulums driven by Motion springs for React applications.

Pendulum Text preview

Scroll to load preview

Type that hangs from the ceiling. Each character is pinned by an invisible string at its top edge and swings around that anchor as a real pendulum — Motion's useSpring drives an underdamped harmonic oscillation, so a click sends every letter into a back-and-forth arc that gradually settles. At rest the letters hang at slightly different angles, derived deterministically from each glyph's index so the word looks alive even before you touch it. A faint vertical hairline above each glyph hints at the suspending thread without dominating the composition. Spaces stay rigid. Drop it into a hero, a 404, or any moment where you want type that responds to a poke.

Install with AI

If you've connected the shadcn.io MCP server to Claude Code, Cursor, Windsurf, or any MCP-ready AI editor, prompt your agent to install this text effect for you — no copy-paste, no CLI:

use shadcnio to install the pendulum-text text effect into my project

FAQ

Was this page helpful?

Sign in to leave feedback.