Skip to the stack
Paramaguru

Menu

Colours for this site

Home

3D template · Food & Drink

How Stack Burger Co. is built

Smash burgers, built your way.

A burger joint page where you build the burger. Ingredients drop and stack with real 3D physics, the tower wobbles when you shake it, and the order and price update as you go.

The stack

What each part does here.

I built the interactive parts of Stack Burger Co. with Svelte. These are the technologies on the page, and the job each one does.

Framework

Svelte

Runs three islands, the hero burger, the 3D tray and the order panel, which share one rune store of layers, price and shake requests.

  1. 3D & WebGL

    Threlte

    Builds both scenes as Svelte components, one per layer of the order, rendering only on demand and pausing when they leave the screen.

  2. 3D & WebGL

    Rapier physics

    Drops each layer as a rigid body with a fitted collider, steps at a fixed 60 Hz, sleeps settled stacks and loads only near the builder.

  3. Scroll & timeline

    GSAP

    Drops the hero burger's layers onto the board, counts the total up, pops price tags and receipt rows, and slaps sections into view.

Built on the same base as every template

  • AstroBuilds every page to static HTML and loads each island's framework only where it is used.
  • TypeScriptTypes the content, the components and every script, so mistakes surface at build time.
  • Tailwind CSS 4Utility classes and design tokens, scoped to each template's own folder.

What each technology adds in general is under how my 2D templates and 3D templates differ.

Typography

The fonts it's set in.

I chose two open-licence families for Stack Burger Co. and host them with the site, so the text never waits on a font service.

See Stack Burger Co. in other fonts before you choose yours.

Try other fonts on Stack Burger Co.

Colours

The colours it's painted in.

I painted Stack Burger Co. in eight colours on a light background, each with a single job: the same eight jobs every palette in my colour library fills.

  • Background#FFF4DD
  • Surface#FFFCF4
  • Text#2B1D16
  • Muted text#5C4334
  • Accent#C2341C
  • On accent#FFFFFF
  • Second accent#F5B82E
  • Lines#DDD2BD
Scheme
Light
Previews in
Light palettes
3D scene
Keeps its own colours, so a new palette repaints the page around it.

See Stack Burger Co. in other colours before you choose yours.

Try other colours on Stack Burger Co.

Signature effects

What you'll see.

Motion style: Physics & play, Product viewer.

  1. 01Build-a-burger with real 3D physics
  2. 02Ingredients that drop and stack
  3. 03Shake to wobble the stack
  4. 04Live order and price

The app behind this template

Stack Burger Orders

Online ordering for a burger restaurant, with a 3D burger to build and a live kitchen board, from checkout to the rider's hand-off.

  • Astro
  • Svelte
  • Postgres
  • Drizzle

Start a project

Start with Stack Burger Co..

Tell me about your business, and I'll shape Stack Burger Co. around it: your words, your pictures and the way you want visitors to reach you.