The scroll-driven particle engine behind a living landing page, opened up so you choose the forms. Ninety thousand additive points sit on a fixed WebGL canvas behind tall sections and flow from one shape to the next as you scroll: built-in presets (sphere, galaxy, brain, DNA, torus, cube, helix, wave, heart, ring), any text in any font, an image or logo sampled by brightness that can keep its own colors, an SVG path or your own function. Mint to violet gradient, nebula bands, bokeh stars, a pulsing core behind the brain and a cursor that parts the field like mist. Includes a progress rail, a minimal pill nav and the exported sampleShape utility. Reduced motion swaps still forms with no animation and a CSS orb stands in without WebGL.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { ParticleMorphScroll } from "@/components/hyperblur-pro/particle-morph-scroll"
import { ParticleMorphScroll, sampleShape } from "./particle-morph-scroll";
<ParticleMorphScroll
colors={["#5b4bff", "#66dfeb", "#7fffd4"]}
shapes={[
"sphere",
{ type: "text", value: "HYPERBLUR", font: "800 200px Inter, sans-serif" },
{ type: "image", src: "/logo.png", mode: "alpha", colorMode: "source" },
{ type: "svg", d: "M12 21s-7-4.4-9.3-9A5.2 5.2 0 0 1 12 6a5.2 5.2 0 0 1 9.3 6c-2.3 4.6-9.3 9-9.3 9z" },
(i, n) => {
const t = i / n;
const a = t * Math.PI * 40;
return [Math.cos(a) * (1 - t), t * 2 - 1, Math.sin(a) * (1 - t)];
},
"brain",
]}
sections={[
{ title: "Every form\nstarts as light", align: "left" },
{ title: "Words in stars", align: "bottom" },
{ title: "Your mark", align: "right" },
{ title: "Any path", align: "left" },
{ title: "Your own math", align: "top" },
{ title: "Thought, made visible", align: "left" },
]}
/>
const logo = await sampleShape({ type: "image", src: "/logo.png" }, 20000);
logo.positions;
logo.colors;| Prop | Type | Default | Description |
|---|---|---|---|
| shapes | ParticleShape[] | sphere, text "SCROLL", galaxy, generic logo, brain | One form per step. Each item is a preset name ("sphere" | "galaxy" | "brain" | "dna" | "torus" | "cube" | "helix" | "wave" | "heart" | "ring"), { type: "text", value, font?, lineHeight? }, { type: "image", src, mode?: "luminance" | "alpha" | "dark", threshold?, depth? }, { type: "svg", d, viewBox?, stroke? }, { type: "function", fn } or a bare (i, n) => [x, y, z] function (return six numbers to add r, g, b from 0 to 1). Object shapes also accept label, scale, offset [x, y], spin and colorMode. |
| sections | ParticleMorphSection[] | 5 sections | Content for each step: eyebrow, title (use \n for breaks), text, cta { label, href }, align ("left" | "right" | "center" | "top" | "bottom") or a custom content node. The shape moves away from the copy automatically. |
| particleCount | number | 90000 | Points in the field. Small screens use about 45 percent and four-core devices about 70 percent. |
| colors | string[] | ["#5b4bff", "#66dfeb", "#7fffd4"] | Gradient stops from bottom to top (two or three hex colors). Also tints the nebula and the UI accents. |
| colorMode | "gradient" | "source" | "gradient" | Use the gradient for every shape, or let image and function shapes keep their own colors. A shape's own colorMode wins. |
| pointSize | number | 1 | Multiplier for the particle size. |
| easing | "smooth" | "linear" | "expo" | (t: number) => number | "smooth" | Curve of each morph between two sections. Every form also holds still for a moment around its section. |
| interactive | boolean | true | Let the pointer part the particles and tilt the form. |
| maxDpr | number | 2 | Upper limit for the canvas pixel ratio (capped at 2). |
| brand / navLinks / navCta | string / ParticleMorphLink[] / ParticleMorphLink | null | "Morph" / 3 links / "Get access" | Content of the minimal pill navigation. |
| showNav | boolean | true | Show the pill navigation. |
| showProgress | boolean | true | Show the clickable progress rail on the right. |
| sampleShape | (shape: ParticleShape, count: number, seed?: number) => Promise<SampledShape> | - | Exported utility that turns any shape into { positions: Float32Array (x, y, z), colors: Float32Array (r, g, b, 1) | null, kind, flat }. Useful for your own renderers or to precompute forms. |
Source code is included in Pro and above