
Grid Tunnel
WebGL
A structured Canvas 2D grid effect that raises a technical surface into subtle depth for AI, developer-tool, and product hero sections.
Grid Lift raises a structured surface just enough to make the hero feel engineered without turning it into a 3D showroom.
Use it for technical brands, AI platforms, and developer-tool launches where structured motion should signal engineering taste. The page job is controlled lift: the grid adds depth while the copy stays in charge.
In production, the risk is jitter. Too many moving cells make the surface feel noisy, especially on lower-power devices.
import GridLift from '@/components/effects/grid-lift' const page = () => { return ( <> <GridLift/> </> )} export default pageAn AI infrastructure startup can use Grid Lift in its launch hero, with the product wordmark or logo set as the mask. As the visitor's cursor moves near the shape, grid cells lift toward the pointer and settle back as it moves away, while the headline and CTA stay in HTML above the surface.
The outcome is precision. The brand feels engineered from the first frame without turning the hero into a 3D scene.
A design engineer's portfolio can use the same pattern behind a name or monogram on the opening screen.
Not for low-power-first pages, dense content, dashboards, checkout, or routes where performance is the main conversion lever.
Cap DPR at 1.0 on touch/mobile and up to 1.5 on mid-range desktop. Pause Grid Lift offscreen and in hidden tabs, and keep texture sizes controlled.
Keep meaningful content in HTML outside the canvas. On mobile, reduce grid density and switch to a poster if the scene cannot hold frame rate.
| Prop | Type | Default | Description |
|---|---|---|---|
maskScale | number | 1.08 | Scale applied to the text/SVG mask. |
fontSize | number | 350 | Base font size used to fit the text mask (Text mode only). |
fontWeight | number | 200 | Font weight used for the text mask (Text mode only). |
interactionRange | number | 120 | Distance from the mask shape at which cursor interaction starts registering. |
hoverRadius | number | 550 | Radius of cursor influence over grid cells. |
hoverFalloff | number | 1.55 | Falloff curve power applied across the hover radius. |
liftRotation | number | -88 | Direction, in degrees, that lifted cells are extruded toward. |
liftHeight | number | 58 | Maximum extrusion distance for lifted cells. |
liftSmoothness | number | 0.08 | Lerp smoothing factor applied to the lift animation. |
gridSpacing | number | 13 | Spacing between grid cells, in pixels. |
strokeSize | number | 1.15 | Line width for the grid strokes. |
baseOpacity | number | 1 | Opacity of the resting (unlifted) grid. |
hoverOpacity | number | 0.6 | Opacity of the lifted grid highlight. |
backgroundColor | color | #000000 | Canvas background color. |
gridColor | color | #272727 | Color of the resting grid lines. |
hoverColor | color | #ffffff | Color of the lifted grid highlight. |
Lifting a grid into depth scales with the number of cells animated, so cap DPR at 1.0 on mobile and 1.5 on desktop and keep the grid density reasonable. Reduce cell count or motion on weaker devices. Measure with your real grid size rather than a sparse demo.
Show the grid in its flat, resting arrangement as a static image so the structure still reads without the lift. The surrounding HTML content is unaffected. The flat grid is a clean, honest substitute.
Pause the lift animation and render loop when the canvas leaves the viewport or the tab is hidden, then resume on return. Use demand rendering once the grid settles. Don't keep animating a grid no one is looking at.
Any labels or links tied to grid items belong in the DOM, not in the rendered cells, so they stay readable and clickable. The lift is a visual flourish over real content. Keep interactive items as focusable elements.
Use a static grid when the depth adds nothing functional, when optimizing for mobile, or when the cells carry information users must read precisely. If the lift is pure decoration, the flat layout is leaner. Reserve it for hero or feature moments.
Need a custom effect? Tell us what to create.