Hello and welcome to my b:log. I'm Remy Sharp, a developer running my own business called Left Logic out of Brighton, UK. This place will mostly concentrate on web, code, a touch of business and some other personal pieces too - all available here or as a friendly RSS feed. Enjoy!
Latest: when-do web component
I saw recently saw a blog post (which annoyingly I can't find any more, but I'll link it if I do), showing off a web component that if I recall correctly, would show (or hide) it's contents depending on a browser feature (I'd guess using the @supports query).
That reminded me that I wrote a web component that I use quite a bit (particularly with FFConf), which should really be called do-when, but it's not, it's (stupidly) called when-do (the dash, I guess, being a comma in my head).
The component says: when a time occurs or passes, do a what: show, hide or scroll-to.
You can get the code from github - which also includes an interactive demo that lets you try the settings.