A product style hero with a polished metal band raymarched in a raw WebGL shader. The ring reflects a procedural studio of softboxes, floats with a slow bob and turns gently, while a soft contact shadow on a seamless neutral floor shifts with it. Drag to spin it with inertia (vertical drags also tilt it with a mouse). Edges are anti-aliased in the shader, resolution lowers itself if frames run slow, and a CSS ring stands in when WebGL is unavailable. Reduced motion renders a still frame and rendering pauses off screen.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { FloatingObjectHero } from "@/components/hyperblur-pro/floating-object-hero"
<FloatingObjectHero
title="Weightless by design"
metal="#e6c27a"
actions={[{ label: "Order now", href: "/shop" }]}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| brand | string | "Halo" | Wordmark in the nav. |
| links | { label: string; href?: string }[] | [Collection, Craft, Journal, Bag] | Nav links, hidden on small screens. |
| eyebrow | string | "Titanium band" | Small caps line above the title. |
| title | string | "Weightless by design" | Headline. |
| subtitle | string | "A single polished band, machined from one piece of metal..." | Supporting paragraph. |
| actions | { label: string; href?: string }[] | [{ label: "Order now" }, { label: "Learn more" }] | First is a filled pill, second a text link. |
| hint | string | "Drag to rotate" | Tiny hint in the corner. Empty string hides it. |
| metal | string | "#d9dadc" | Base reflectance color of the metal. Try #e6c27a for gold. |
| ink | string | "#1a1a1b" | Text and primary button color. |
| accent | string | "#8a6a3e" | Eyebrow color and focus ring. |
| speed | number | 1 | Idle rotation speed. 0 holds still. |
| maxDpr | number | 1.5 | Upper limit for the canvas pixel ratio (capped at 2). |
| height | string | "100vh" | Section height, any CSS length. Minimum 620px. |
Source code is included in Pro and above