~/talk

DOM animations, almost native

Talkat Meta Refresh 2015 · 2015-04-16..04-17· [web-performance, web-animation]
links:none on file
slides:none on file

Goal is 60 FPS so each frame must finish in about 16 ms (aim for 10 ms to be safe). Use requestAnimationFrame not setInterval, avoid DOM trashing (read/write cycles), minimize painting cost and heavy trees, and prefer composited transforms like translate 3D and will change to get separate layers. For interactive motion use JS (libraries: velocity and green sock); for simple motion use CSS transforms (translate/rotate/scale/opacity). Demo code from Arya shows this approach works.

AI-written summary · about

  1. 0:00DOM animations intro
  2. 2:14Frame rate impact
  3. 4:01Rendering pipeline
  4. 6:48requestAnimationFrame vs setInterval
  5. 9:01Optimizing event handling
  6. 10:48Avoid heavy scripting
  7. 11:09Prevent DOM trashing
  8. 12:54Reduce paint operations
  9. 14:16CSS transforms for smoothness
  10. 15:41JS vs CSS animations
  11. 16:23High-performance principles
  12. 17:49Native-like DOM animations
~/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.