Grid Tunnel

A kinetic WebGL tunnel effect that pulls the eye through a vanishing-point grid for technical launches and portfolio heroes.

Published On: June 4, 2026
Last Updated: August 17, 2026
Three.js@react-three/drei@react-three/fiber
Grid Tunnel

Overview

Grid Tunnel pulls the eye through technical space before the product story begins.

Use it for AI launches, developer tools, cybersecurity pages, and technical portfolios where kinetic depth is the opening signal. The page job is momentum: the tunnel should frame the first claim, not become a loading screen disguised as craft.

The thing to watch is sustained motion. A tunnel can drain attention and GPU if it keeps running after it has made its point.


Install Command

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.


Usage Code

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.


Component Code

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.

This is a Pro Effect.

You can preview it now. Upgrade to Pro for instant install access.


Example Production Use Case

Use this as WebGL production guidance. Verify the shipped source, rendering stack, dependency list, shader assets, resource disposal, pause/offscreen behavior, DPR strategy, poster fallback, and reduced-motion state before relying on exact props, defaults, imports, or installation steps.


Best Used For

  • Technical launches where vanishing-point depth supports the positioning before the copy expands it.
  • Developer-tool and cybersecurity heroes where engineered space is part of the brand language.
  • Portfolio openers where kinetic depth earns its GPU budget.

Not For

Not for low-power-first pages, dense content, dashboards, checkout, or routes where performance is the main conversion lever.


Performance Budget

Cap DPR at 1.0 on touch/mobile and up to 1.5 on mid-range desktop. Pause Grid Tunnel offscreen and in hidden tabs, reduce postprocessing before shipping, and keep texture sizes controlled.


Accessibility and Mobile

Keep meaningful content in HTML outside the canvas. On mobile, reduce shader quality and switch to a poster if the scene cannot hold frame rate.


Common Mistakes

  • Running continuous tunnel motion when a still depth frame would do the job.
  • Letting tunnel movement reduce headline legibility.
  • Forgetting to pause the loop when the section is offscreen or the tab is hidden.

Changelog

v1.2.0

Jul 24, 2026
Added a prefers-reduced-motion notice, and hardened camera-frame timing so a long tab-hidden pause no longer displaces the camera (and by extension the recycled tunnel chunks) on resume.

Props

PropTypeDefaultDescription
gridSizenumber24Tunnel grid density.
speednumber1Scroll and touch travel speed.
depthnumber1000Visible tunnel fog depth.
lineColorstring#9ca3afGrid line color.
backgroundColorstring#ffffffTunnel background color.

Frequently Asked Questions

What GPU budget should Grid Tunnel use on mobile and desktop?

The continuous travel-through-space motion keeps the loop busy, so cap DPR at 1.0 on mobile and 1.5 on desktop and keep tunnel geometry and depth complexity in check. Slow or simplify the motion on the lower tier. Verify sustained smoothness on a phone, since the effect runs continuously.

Request a Custom WebGL Animation

Need a custom effect? Tell us what to create.