Prompt library

WebGL Image-Column Intro with Loader Bar

Category: Hero and intro · Interaction: timed intro, WebGL · Stack: Three.js + GSAP (vanilla or React)


Prompt

Build a full-screen landing hero with a choreographed intro sequence. A loader bar fills, the brand mark appears, and then a column of images rendered in WebGL sweeps up through the screen with a speed-reactive bulge and a colour bloom.

Look and feel

  • Black canvas with white type and one neutral sans-serif (Inter or similar) at small sizes, uppercase for the footer copy.
  • My own wordmark as an inline SVG spanning the full width at the top. Each letter is a separate path so the letters can animate individually.
  • A slim navigation bar under the logo with my studio name, two or three links and a contact link.
  • Footer row: email on the left, a one-sentence studio description in the centre, copyright on the right. Stack it on mobile.
  • 10–14 project images (landscape) shown as a single vertical column of WebGL planes in the centre of the screen.

Intro sequence

  1. The header starts at the bottom of the screen. The nav bar acts as a loader: a solid bar grows from left to right in a few irregular jumps (not one smooth fill), with a percentage counter riding its leading edge.
  2. At 100%, the counter slides out of view. The nav labels and then the logo letters rise into place one by one from behind masks.
  3. The image column enters from below and travels upward through the screen. At the same time the whole header glides from the bottom to the top of the viewport. Use a strong custom ease that starts slow, rushes and then settles.
  4. The footer copy rises in line by line to finish.

WebGL behaviour

  • Map the camera so one world unit equals one CSS pixel; planes then size like DOM elements and stay correct on resize.
  • In the vertex shader, bulge the planes toward the camera around a point slightly below centre. Make the bulge height follow the column's current speed, smoothed: strong while racing, flat when still.
  • As each plane passes through the middle band of the screen, it widens slightly (around 15–25%) and goes from grayscale to full colour. Adjust the UVs so widening reveals more of the image instead of stretching it, and keep a cover-fit for any image ratio.

Implementation notes

  • Drive everything from one GSAP timeline plus a ticker callback for rendering. Cap the pixel ratio at 2. Wait for fonts before splitting text.
  • With prefers-reduced-motion, skip the sequence and show the final layout with a static image.

Deliverable: modular code (scene setup, shaders, intro timeline, layout helpers) with a config object for counts, sizes, timings and bulge strength.