First, scrollbars are a usability and accessibility thing. Second, a rule of thumb: if an area scrolls, it should have a visible scrollbar. But the web is a big place and I like tricks, so I’m going to cover the …
I just had to debug an issue with focusable elements in Firefox. Someone reported to me that when tabbing to a certain element within a CodePen embed, it shot the scroll position to the top of the page (WTF?!). So, …
import confetti from 'https://cdn.skypack.dev/canvas-confetti'; confetti();
import statement is just gonna run. There is a pattern to do it conditionally though. It’s like this:
Louis Lazaris demonstrates a very simple way of doing this.
- Unhide the body by transitioning it back to