Observing Style Changes (2024.09.25 @ devs.gent)

Slides of the talk “Observing Style Changes” I gave at the September 2024 meetup of devs.gent at the Lemon Ghent offices.


This content originally appeared on Bram.us and was authored by Bramus!

Me, on stage. Photo by devs.gent.

Today I gave a talk at the September 2024 devs.gent meetup on how to observe and respond to Style Changes.

~

Table of Contents

~

# The Talk

The talk I gave was about half an hour and covered my journey into building @bramus/style-observer

A shortcoming of MutationObserver is that it cannot be used to subscribe to value changes of CSS properties.

While you could resort to requestAnimationFrame and getComputedStyle to plug that hole (which you shouldn’t), there is a more performant way to achieve this: leverage the power of CSS transitions in combination with the fairly recent transition-behavior: allow-discrete. With it, you can set up JavaScript callbacks to respond to changes in computed values of CSS properties – including Custom Properties.

This is basically a talkified version of this blog post.

~

# Slides

The slides of my talk are up on slidr.io are embedded below:

These exported slides don’t contain any recordings of the demos included, but you can follow the links on the slides to check them out yourself.

~

# Recording/Video

This talk was not recorded. Once the recording is released, I’ll update this post to include the embed.

~

# Thanks!

Thanks again to Bert, Elian, and Freek for having me. Always a pleasure to speak at a local meetup and meet new and old friends. Also a big kudos to Lemon for hosting, offering food and beverages, and providing a crew to record the talks.

~

💁‍♂️ If you are a conference or meetup organiser, don't hesitate to contact me to come speak at your event.


This content originally appeared on Bram.us and was authored by Bramus!


Print Share Comment Cite Upload Translate Updates
APA

Bramus! | Sciencx (2024-09-25T21:10:54+00:00) Observing Style Changes (2024.09.25 @ devs.gent). Retrieved from https://www.scien.cx/2024/09/25/observing-style-changes-2024-09-25-devs-gent/

MLA
" » Observing Style Changes (2024.09.25 @ devs.gent)." Bramus! | Sciencx - Wednesday September 25, 2024, https://www.scien.cx/2024/09/25/observing-style-changes-2024-09-25-devs-gent/
HARVARD
Bramus! | Sciencx Wednesday September 25, 2024 » Observing Style Changes (2024.09.25 @ devs.gent)., viewed ,<https://www.scien.cx/2024/09/25/observing-style-changes-2024-09-25-devs-gent/>
VANCOUVER
Bramus! | Sciencx - » Observing Style Changes (2024.09.25 @ devs.gent). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/25/observing-style-changes-2024-09-25-devs-gent/
CHICAGO
" » Observing Style Changes (2024.09.25 @ devs.gent)." Bramus! | Sciencx - Accessed . https://www.scien.cx/2024/09/25/observing-style-changes-2024-09-25-devs-gent/
IEEE
" » Observing Style Changes (2024.09.25 @ devs.gent)." Bramus! | Sciencx [Online]. Available: https://www.scien.cx/2024/09/25/observing-style-changes-2024-09-25-devs-gent/. [Accessed: ]
rf:citation
» Observing Style Changes (2024.09.25 @ devs.gent) | Bramus! | Sciencx | https://www.scien.cx/2024/09/25/observing-style-changes-2024-09-25-devs-gent/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.