Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA real photograph of raw concrete architecture seen through a pane of cracked glass, rendered in WebGL: large radial shards that grow from an impact point each refract the image with their own tilt, rotation and scale, with a subtle color dispersion that grows toward the edges and peaks right along the cracks, while the shards slowly drift and catch moving sheens of light. The pointer moves the impact point, a click re-fractures the pane with a shock ring, and the photos cycle shard by shard. Uses Unsplash photos by default, falls back to CSS-clipped shards without WebGL and renders a single still frame under reduced motion.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { FracturedLens } from "@/components/hyperblur-pro/fractured-lens"
<div style={{ position: "relative", height: "100vh" }}>
<FracturedLens images={["/photos/atrium.jpg", "/photos/stairwell.jpg"]} interval={9} />
</div>| Prop | Type | Default | Description |
|---|---|---|---|
| images | string[] | 3 Unsplash concrete architecture photos | Photos seen through the glass. They cycle shard by shard when there is more than one. |
| interval | number | 9 | Seconds each photo stays before the next one shatters in. |
| aberration | number | 1 | Strength of the color dispersion along cracks and toward the edges. |
| facets | number | 1 | Shard density. Higher splits the glass into more pieces. |
| shift | number | 1 | Speed at which the shards drift and re-tilt. |
| monochrome | number | 0.85 | How far the photo is toned toward neutral concrete grey, from 0 to 1. |
| accent | string | "#e0261b" | Color of the resonance glowing from the impact point along the cracks. |
| interactive | boolean | true | The pointer moves the impact point and clicks re-fracture the glass. |
| maxDpr | number | 1.5 | Upper limit for device pixel ratio. |
Source code is included in Pro and above