~/talk

Dynamic CSS secrets

Talkat Wey Wey Web 2022 · 2022-12-15..12-16· [css, web-platform]
slides:none on file

CSS custom properties move from simple tokens to reactive component APIs: two-thirds of variables are constants in the web Almanac but variables can drive hover animations, randomized accents, and a rainbow hue animation once declared with @property addProperty so the browser can interpolate numbers. Practical patterns include pseudo-private variables for bundled fallbacks, the space-toggle hack (whitespace + initial) to toggle complex styles, counter+integer tricks to render percentages, linear mapping for color/position interpolation, and an SVG eye demo driven purely by root-level vars.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 3:50Component-based styling with CSS variables
  3. 16:28Conditional styling with space toggle hack
  4. 35:54Dynamic bar chart with CSS variables
  5. 51:24Conclusion and API design trade-offs
  6. 53:08Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.