~/talk

CSS Houdini - from CSS variables to JavaScript and back

Talkat Frontend United 2017 · 2017-05-26..05-27· [css, web-platform]
slides:none on file

CSS Custom Properties now live in major browsers and CSS Houdini adds a JavaScript API to registerProperty with type, initial value and inheritance so variables become typed and animatable. The ecosystem exposes paint worklet, layout worklet and animation worklet to run small ESM worklets off the main thread. Demos include RGB sliders, a multiborder painter, and a scroll-position line; measuring one animation drops CPU usage roughly in half and reduces memory from ~15–28MB to ~8–21MB.

AI-written summary · about

  1. 0:00Start
  2. 0:46About me
  3. 1:39Preprocessors
  4. 3:22Native CSS Syntax
  5. 4:34Declaration and usage
  6. 5:38Valid examples
  7. 6:28Declaration and use cases
  8. 7:43CSS-Wide Keywords
  9. 9:50Operations: +, -, *.
  10. 11:41Calculate all the app colors from the base-color (theming)
  11. 12:56Changes to Custom Props have immediate effect
  12. 13:45CSS Properties are aware of the DOM structure
  13. 14:28Using Custom Properties With JavaScript
  14. 15:31Rotate page elements using CSS variables
  15. 16:16Check if supported
  16. 17:22Current constraints
  17. 18:11Why animation is important
  18. 18:34Why typed CSS properties and values are important
  19. 19:22Introducing CSS property types?
  20. 20:10Houdini group
  21. 21:57CSS Properties Values API
  22. 23:00CSS Properties and Values API 2 @property --stop-color
  23. 24:13"syntax" of CSS properties
  24. 26:03Native CSS Animation
  25. 26:51Web animation API
  26. 27:56Native JavaScript animation
  27. 29:03CSS/JS/Browser
  28. 29:52Browser rendering
  29. 34:38Paint Worklet example
  30. 42:25Compositor only properties
  31. 43:18Animation Worklet-CSS/JS parts
  32. 44:01Animation Worklet itself
  33. 44:55Timeline and animate
  34. 46:05Animation Worklet result
  35. 46:30endScrollOffset option
  36. 46:53New Twitter Header effect using Animation Worklet
  37. 47:51Consclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.