← Archive09 / 16
ExperimentNo. 09Updated
Index Tiles
Sixteen tiles use their index to set colour, angle, corner radius and spin timing. Adjust the shared values, pick a tile, and see how its properties are calculated.
- Made
- Oct 2023
- Type
- CSS study
- Stack
- CSS custom properties / calc()
Animation controls
The formula for each tileTile you picked
--i: 7
Idea
I wanted to see how one index could drive several CSS properties, and how changing the base hue and hue step shifts the HSL colors across all sixteen tiles.
Notes
- Each tile gets a different
--ivalue.calc()uses it to set the hue, angle, corner radius, spin duration and delay. - Changing one shared value updates all sixteen tiles. Picking a tile shows the values behind its style.
Revisited
- Oct 2023: first made on CodePen (v1).
- Nov 2026: rebuilt for the lab with adjustable values and details for each tile.