Modus UI

Glyph Eddy

Web (React)

Turning rings of set type that crumble into glyph dust under the cursor and gather into the centre on click, drawn in the Modus type and theme ink.

Turning rings of set type that crumble into glyph dust under the cursor and gather into the centre on click, drawn in the Modus type and theme ink. It fills its positioned parent, follows the active theme and palette in light and dark mode, pauses when off screen and renders a still frame when the user prefers reduced motion.

Hover to dissolve · Click to gather
Modus / Glyph Eddy

Installation

CLI

npx @modus-ui/cli add glyph-eddy

Manual

  1. Copy the code from the component tab.
  2. Create a file at components/ui/glyph-eddy.tsx.
  3. Paste the code.

Usage

tsx
import { GlyphEddy } from "@/components/ui/glyph-eddy";

export default function Example() {
  return (
    <div className="relative h-[500px] w-full overflow-hidden">
      <GlyphEddy />
      <div className="relative z-10 p-8">
        <h1>Content over the background</h1>
      </div>
    </div>
  );
}

Props

PropTypeDefaultDescription
phrasestring"MODUS / FORM FOLLOWS MOTION / "Text repeated around every ring.
speednumber0.8Ring rotation speed multiplier.
ringGrowthnumber1.15Radius ratio between neighbouring rings (min 1.08).
opacitynumber1Overall opacity of the type, guides and dust.
dissolveRadiusnumber1Size multiplier of the hole carved by the pointer.
particleAmountnumber1How much dust the pointer sheds.
suctionDurationnumber920Length of the click gather in milliseconds.
hintstring"Hover to dissolve · Click to gather"Caption at the bottom; pass an empty string to hide.

Comments

  • No comments yet.