Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Grid Tunnel

Grid Tunnel

A scroll-driven WebGL tunnel effect that moves the viewer through an endless, image-lined vanishing-point grid for technical launches and portfolio heroes.

Three.js@react-three/drei@react-three/fiber
DemoDemoDemo

Tune the Real Props

Line Color
Background Color

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 scroll capture. The tunnel takes over wheel and touch input for the whole window, and it renders every frame while onscreen, which can drain attention and GPU.


Usage Code

page
1import GridTunnel from "@/components/effects/grid-tunnel";2 3const page = () => {4  return (5    <>6      <GridTunnel />7    </>8  );9};10 11export default page;12 

Example Production Use Case

A developer conference site can use Grid Tunnel to open its event page. Scrolling or swiping moves the visitor forward through a wireframe tunnel lined with photography from past editions, while the event name, dates, and ticket link stay fixed in HTML.

The outcome is momentum. The page frames the first claim with depth and movement before anything else is read.

A creative technologist's portfolio can use the same tunnel as an opener, choosing the rectangular or circular cross-section to match the work.


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

The canvas already caps DPR at 1.5 and pauses offscreen and in hidden tabs; drop DPR to 1.0 on touch/mobile, and keep texture sizes controlled, since each tunnel chunk places up to 50 image panels.


Accessibility and Mobile

Keep meaningful content in HTML outside the canvas, which is aria-hidden. On mobile, vertical swipes drive the tunnel instead of scrolling the page, so switch to a poster if the scene cannot hold frame rate.


Common Mistakes

  • Placing the tunnel above content visitors need to scroll to, since it captures wheel and touch scrolling for the whole window.
  • Letting tunnel movement reduce headline legibility.
  • Forgetting to pause the loop when the section is offscreen or the tab is hidden.

Changelog

Added reduced-motion support and hardened camera-frame timing so a long tab-hidden pause no longer displaces the camera on resume.
Initial release

API Reference

PropTypeDefaultDescription
numberOfGridsnumber24Number of grid cells (density of the tunnel grid).
shapestringrectangleTunnel cross-section: rectangle or circle (the images curve with the circular walls).
speednumber1Scroll and touch travel speed.
depthnumber1000Visible tunnel fog depth.
lineColorstring#9ca3afGrid line color.
backgroundColorstring#ffffffTunnel background color.

Questions, Answered.

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

The render loop runs every frame while onscreen and each tunnel chunk carries up to 50 image panels, so the canvas caps DPR at 1.5; use 1.0 on mobile and keep images small. Lower numberOfGrids or depth on the lower tier. Verify smoothness on a phone while swiping.

What poster fallback should replace Grid Tunnel when WebGL fails?

Provide a still that captures the sense of depth a frame looking down the tunnel, so the fallback keeps the technical mood. HTML copy and CTA remain intact above it. The still should feel deliberate, not like a broken frame.

How should Grid Tunnel pause when offscreen or in a hidden tab?

The tunnel only moves on scroll or touch, but its render loop runs every frame while visible, so pausing matters. It already sets the frameloop to never when offscreen or the tab is hidden and resumes on visibility. Demand rendering would also cut idle frames.

Which content should stay outside the Grid Tunnel canvas?

All headline and body content stays in HTML over the canvas; the tunnel is a backdrop, not a container. Don't paint any message into the moving geometry. Keep links and buttons as real DOM elements.

When should I choose a static image instead of Grid Tunnel?

Choose a static backdrop when scroll-driven motion would distract from the copy, when performance is tight, or when the audience is mostly mobile. If the depth illusion isn't advancing the message, a still costs far less. Use the live tunnel only where kinetic depth is the hook.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Numeric Tunnel Loader
GSAP @react-three/fiber@react-three/drei

Numeric Tunnel Loader

Loaders

Dotted Grid Background
canvas

Dotted Grid Background

Backgrounds

Fractal Glass
Three.js

Fractal Glass

WebGL

Milky Way
Three.jsGSAPLucide-react

Milky Way

WebGL

Mouse Pixelation
Pro
Three.js@react-three/fiber@react-three/postprocessing

Mouse Pixelation

WebGL