A hero headline cut from crystal. The title is rasterized into a height field, then a WebGL shader refracts a drifting field of bright color discs and rings through every letter with chromatic dispersion, fresnel edges, an inner tint and a drop shadow. A specular highlight follows the pointer, and the whole word leans in perspective toward it. A scripted highlight glides across the word until you touch it and returns when you rest. The real headline stays in the DOM, a CSS outline headline over drifting blobs stands in without WebGL, and reduced motion renders a still frame.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { GlassTypeHero } from "@/components/hyperblur-pro/glass-type-hero"
<GlassTypeHero
lines={["Clear", "minds."]}
colors={["#ffb347", "#ff5f6d", "#6a5cff"]}
refraction={1.2}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| brand | string | "Prism & Co" | Wordmark in the nav. |
| links | string[] | ["Collection", "Studio", "Journal", "Contact"] | Nav links. |
| eyebrow | string | "Material study 04" | Pill above the headline. Empty string hides it. |
| lines | string[] | ["Pure", "glass."] | Headline lines. Short words read best. |
| subtitle | string | "Letters cut from crystal..." | Paragraph under the headline. |
| actions | { label: string; href?: string }[] | [{ label: "Explore the study" }, { label: "Get in touch" }] | Up to two buttons. The first one is filled. |
| accent | string | "#ff7ad9" | Accent for the eyebrow dot, brand mark and focus ring. |
| colors | [string, string, string] | ["#ff5fa2", "#5b6bff", "#2fe6d0"] | Three colors that tint the shapes and the backdrop behind the glass. |
| refraction | number | 1 | How strongly the background bends through the letters. |
| tilt | number | 1 | How far the word leans toward the pointer. 0 disables the tilt. |
| maxDpr | number | 2 | Upper limit for the canvas pixel ratio (capped at 2). |
| height | string | "100vh" | Height of the section, any CSS length. Minimum is 560px. |
Source code is included in Standard and above