{} / showcase

Showcase

What you can make with GSS.

Studies, and real uses for designers, creative coders and developers. Every scene on this page is live: drag it, hover it, open it in the playground. And every use case is embedded with <gss-scene>, the same tag you can put on your own site.

01Studies

Eight longer scenes, one at a time: motion paths, carved geometry, gradients, two Zdog models rebuilt, a camera cut open, the film that announces 0.0.5. Each one opens in the playground.

STUDY 01 / MOTION PATHS

Glass Circuit.

A miniature railway in motion. A locomotive, two coaches, a tiny station.

  • offset-path
  • offset-rotate
  • glass
  • animation-delay
paused · press play follow the train · drag to orbit

02For designers

Your logo, your icons, your tokens: the things you already draw in 2D, in 3D, written like a stylesheet.

Your SVG logo, in 3D

Paste the d attribute of your logo into path(): the same drawing becomes a tube you can light, turn and animate. No modelling tool, no export.

#brace-left {
  d: path("M12.5 4.5C9.5 4.5 9 6 9 8.5v4…");
  view-box: 0 0 32 32;
  stroke-width: 2.4;
}

A 3D icon set, themed like a design system

One stylesheet for the whole set. Change --accent or --finish and every icon follows, like tokens in a design system.

scene {
  --accent: #ff5a36;
  --finish: jelly(0.55);
}

.icon {
  color: var(--accent);
  material: var(--finish);
}

03For creative coders

Rules instead of loops, and a readable way into the shader: every scene becomes GLSL you can read, and export.

Generative loops, without a loop

* 36 makes 36 objects; sibling-index() gives each its own angle, height and hue. The rule is the algorithm.

.bead {
  --i: sibling-index();
  translate: calc(-1 * cos(var(--i) * 30deg) * var(--r))
             calc(var(--i) * 0.09)
             calc(sin(var(--i) * 30deg) * var(--r));
  color: hsl(calc(var(--i) * 10) 85% 60%);
}

Sketch in GSS, publish on Shadertoy

The playground turns any scene into a shader Shadertoy runs as is. Start in CSS, then keep going in GLSL: the GLSL tab shows every line GSS wrote.

#ring {
  material: gold;
  animation: tumble 7s linear;
}

@keyframes tumble {
  to { rotate-x: 1turn; rotate-z: -0.5turn; }
}

04For developers

A 3D scene is a stylesheet: small enough to ship, simple enough for an LLM to write.

An interactive hero, without Three.js

Compile the scene at build time with the Vite plugin: the page ships a 10 kB runtime and one shader. :hover works out of the box.

import { mount } from "gss-lang/runtime";
import hero from "./hero.gss"; // compiled by gss-lang/vite

mount(document.querySelector("canvas"), hero);

3D that an LLM writes well

Every LLM already knows CSS by heart, so it writes GSS without any training; the compiler writes the GLSL. This scene came from a one-line prompt.

<script type="module" src="https://www.gss-lang.dev/embed.js"></script>

<gss-scene>
  <script type="text/gss">
    /* what the model wrote */
  </script>
</gss-scene>

05On your site

Three ways to put a scene on a page, from a tag you paste to a build step that keeps the compiler out of the page.

A tagCDN · v0.0.8 · no build step
<script type="module" src="https://cdn.jsdelivr.net/npm/gss-lang@0.0.8/lib/embed.js"></script>

<gss-scene src="logo.gss"></gss-scene>
<gss-scene controls="none">
  <script type="text/gss"> @scene { sphere; } </script>
</gss-scene>
A functionnpm install gss-lang@0.0.8
import { mount } from "gss-lang";

const scene = mount(canvas, "@scene { sphere; }");
scene.update(otherSource);
scene.destroy();
A build stepgss-lang@0.0.8 · compiled with Vite
// vite.config.ts
import gss from "gss-lang/vite";
export default { plugins: [gss()] };

// main.ts: the compiler stays out of the page
import { mount } from "gss-lang/runtime";
import logo from "./logo.gss";
mount(canvas, logo);

noteA scene paints its whole canvas, and a transparent object shows the scene behind it, not the page: give the scene the background of your page. A browser keeps about 16 WebGL contexts; a scene only starts when it comes into view, and sleeps when it leaves it.

06Archive

Every scene of this page, newest first: what it is, the version of GSS it came with, and what it uses. Each one opens in the playground, where you can change it and share it with a link; a study opens in the viewer above.

38 scenes, newest first

  1. Utah teapot

    A lathe body and lid, a cone spout, a path handle. Hover lifts the lid; a click sends the teapot over a speed bump.

    v0.0.6open ↗

  2. Le Chonk

    A pixel 4, extruded from a staircase contour. A click tips it over to the left, then onto its back.

    v0.0.6open ↗

  3. Product Hunt mark

    An orange coin with the P of the flat logo pushed out of it, floating under two sweeping lights.

    v0.0.6open ↗

  4. Sunlit room

    A room lit by one shaft of sun, after Maxime Heckel's global illumination study: an orange ball glows on the floor.

    v0.0.6open ↗

  5. Glass Circuit

    A miniature railway in motion. A locomotive, two coaches, a tiny station.

    v0.0.5study ↑

  6. Soft Relic

    Seven carved bronze fins. A golden star suspended in the aperture.

    v0.0.5study ↑

  7. Candy Garden

    Striped lollipops, wrapped sweets. A miniature confectioner’s garden.

    v0.0.5study ↑

  8. v0.0.5study ↑

  9. High Strut

    The original Zdog character. Same palette, proportions and articulated pose.

    v0.0.5study ↑

  10. Tasty Burger

    Four layers. Five sesame seeds. The slider takes the original construction apart.

    v0.0.5study ↑

  11. Nikon Study

    The 1959 Nikon F exterior. The slider opens an illustrative exploded lens.

    v0.0.5study ↑

  12. v0.0.5study ↑

  13. Grass

    64 tufts of blades, each a prism, blowing in the wind.

    v0.0.4open ↗

  14. Star reactor

    An extruded star in a golden collar, twelve fins and satellites on SVG tracks. Press the star: the whole crown opens.

    v0.0.3open ↗

  15. Steve walks

    A blocky character walking on a strip of grass blocks.

    v0.0.3open ↗

  16. Steve's island

    The walk on a wider island, with an oak and flowers, laid out again by @media on a narrow screen.

    v0.0.3open ↗

  17. Steve's house

    A village on an island of grass blocks: a house, trees, a fence and a pond around the walking character.

    v0.0.3open ↗

  18. The portal

    A floating island with a portal and a crystal carved by CSG. Hover the switch, press it: the circuit and the lamps light up.

    v0.0.3open ↗

  19. L'Orrery

    A fairground planetarium on a plinth of grass blocks: a sun, five planets, lamps, a mirror pool. Every feature at once.

    v0.0.2open ↗

  20. Macro pad

    A product hero in one stylesheet: keys that press, a knob and its level meter, an underglow that breathes.

    v0.0.2open ↗

  21. Tidal

    A breathing instrument: petals open and close around a rising pearl, and a marker laps once per breath.

    v0.0.2open ↗

  22. Ripple pad

    A grid of 25 cells: the one under the mouse rises, and :has() wakes the rim, the stem and the core.

    v0.0.2open ↗

  23. Proximity

    A row of fourteen cells: the one under the mouse grows most, its neighbours less and less.

    v0.0.2open ↗

  24. Mechanical watch

    A watch as a product shot: a steel case, a dial with its ticks, hands that turn in steps.

    v0.0.2open ↗

  25. Orbit sequencer

    Sixteen keys around a planet: hover a key and it pops out, its neighbours react and the inner orbit contracts.

    v0.0.2open ↗

  26. Sillage

    A perfume configurator: hover a swatch to fill the glass bottle with another fragrance.

    v0.0.2open ↗

  27. Logo in 3D

    The d attribute of an SVG logo pasted into path(): its two braces become tubes around a glossy dot.

    v0.0.1open ↗

  28. Icon set

    Five shapes styled as one set. Two variables, an accent and a finish, theme them all, like the tokens of a design system.

    v0.0.1open ↗

  29. Spiral

    36 beads from one rule: sibling-index() gives each its own angle, height and hue.

    v0.0.1open ↗

  30. Gold ring

    A gold ring tumbling around an orange core, ready to export as a Shadertoy shader.

    v0.0.1open ↗

  31. Hover hero

    Seven pillars that answer the mouse: a page hero with :hover, compiled at build time.

    v0.0.1open ↗

  32. Snowman

    A snowman an LLM wrote from a one-line prompt, unedited.

    v0.0.1open ↗

  33. First scene

    The scene of the first page of the docs: a glass ball that floats up and down.

    v0.0.1open ↗

  34. The GSS logo

    { ● } drawn in GSS: both braces come from the same SVG, and the dot is a sphere.

    v0.0.1open ↗

  35. Every feature

    One zone per feature: transforms, operations, animations, materials, shapes, paths and textures.

    v0.0.1open ↗

  36. Materials

    Gold, chrome and metal side by side, from the docs of material.

    v0.0.1open ↗

  37. Grass block

    A block of earth with grass on top: its top face has a texture of its own, with ::top.

    v0.0.1open ↗

  38. Hover a group

    Three bars in a group: hover one, and all three turn orange and grow.

    v0.0.1open ↗