I just finished Nightvolt, a dark, typographic HTML template for AI and SaaS startups, and the part I spent the most time on was the hero.

The obvious move for a "3D" hero is to load a model with Three.js. I didn't want that: models are heavy, they hurt load time on mobile, and most of them look the same.

So each homepage gets its own procedural WebGL field instead, generated by shaders. There's nothing big to download, the motion is computed on the GPU, and the effect can be tuned with a handful of parameters instead of re-exporting assets.

The rest of the stack

  • Vite + Tailwind 4, output is plain HTML you can host anywhere
  • GSAP for the animations and Lenis for smooth scrolling
  • Two homepages and nine pages, Mailchimp-ready newsletter, HTML docs
  • Lighthouse 100 on accessibility and CLS 0

Keeping layout shift at zero with a canvas in the hero mostly came down to reserving the space up front so nothing jumps when WebGL kicks in.

Try it

Live preview: https://nightvolt-preview.romeralalex.workers.dev

If it's useful for your own AI or SaaS site, it's on Gumroad and Payhip.

I'd love feedback, especially on whether the shader hero helps the message or distracts from it.