Skip to content

Holo Foil Field

A full-bleed sheet of crumpled holographic foil in WebGL: its thin-film colours follow Newton's series, each face flashes silver or falls dark as it turns, and tilting it with the pointer sweeps the colour across the sheet.

ProLiquid Chromeneonglass

This is a viberdy Pro component

The live preview, the props panel and the write-up are open to everyone. The full source, the AI prompt and CLI install are part of Pro.

Preview

The record · 14 November

Tilt it to the light.

Props

0.7
10
Hold still
Content
No runtime dependencies
"use client";

import { useEffect, useRef, useState, useSyncExternalStore } from "react";
import type { CSSProperties, ReactNode } from "react";

/**
 * HoloFoilField — a full-bleed sheet of holographic foil in WebGL2.
 *
 * The sheet is crumpled (ridged noise: sharp creases, smooth faces) and
 * coated in a thin film whose colour follows Newton's series, not a
 * rainbow. Each face reflects a lit room, so it flashes silver or falls
 * dark as it turns; the pointer tilts the sheet, sweeping the colours
 * across it, and a light over the pointer makes the nearest faces glint.
 * The film drifts on a 44s cycle. Content goes on top as children.
 *
 * Without WebGL2 it falls back to a CSS foil gradient. Paused off screen
 * and in hidden tabs; reduced motion stops the drift.
 *

  // ---------------------------------------------------------------
  // Full source available with a viberdy Pro subscription.
  // https://viberdy.dev/pricing
  // ---------------------------------------------------------------
}
Notes

About this background

Holographic foil, done as a material rather than a rainbow. The sheet is crumpled with ridged noise, so the creases are sharp and the faces between them smooth, and each face reflects a lit room: tipped toward the light it flashes silver, tipped away it falls dark. Over that runs a thin film whose colour follows Newton's series, the unevenly spaced sequence real interference produces (silver, champagne, magenta, cyan, green, gold, violet), so it reads as foil instead of a hue-rotate. The pointer tilts the sheet: the angle every face shows the eye changes, the colours sweep across the whole field, and a light over the pointer makes the faces nearest it glint. The film drifts on a slow 44s cycle when nobody is steering. Put content on top as children, with a scrim if it is text. Without WebGL2 it falls back to a CSS foil gradient; it renders only while on screen.

Curator’s note

The Liquid Chrome kit's signature surface (slot 2), cut from liquid-chrome-site, where it carries the artist's statement. Pro: a WebGL2 shader with ridged-noise crumple, a reflected room, a thin-film palette lookup and a pointer light, with a CSS fallback.

Related

Pairs well with

Matched on shared tags and category — the entries most likely to be used alongside this one.

NewPro

A WebGL dot matrix under one volumetric light cone that leans toward the pointer: dots inside the light rise in brightness and size and take on the accent.

backgroundwebglshader
Featured
NewPro

A first screen whose title is molten chrome in WebGL: the lit room it reflects turns with the pointer, the metal swells toward it, fast moves and clicks send ripples through the letters, and it stands on a mirror floor.

herowebglshader
Trending
Pro

A slow WebGL wallpaper of folded silk layers on a seamless 60-second loop: vivid, calm, and sharp-edged enough for glass to bend.

backgroundwebglshader