CSS Spotlight Effect
We can pass the mouse position from JavaScript to CSS and use it to make unusual and playful effects.
We can pass the mouse position from JavaScript to CSS and use it to make unusual and playful effects.
Got an old “modal” design? Now might be the time to upgrade it to a
It was a lovely day on the internet when someone asked how to CSS animated gradient text like ChatGPT’s “Searching the web” and promptly got an answer saying “Have you tried asking ChatGPT? Here’s what it told me!” – well, maybe not these exact words, but at least it rhymes. Both the question and this […]
Blobs! Gooey weird shapes you can fill with any background and even animate.
Google Translate doesn’t change the `dir` of a site when translating from LTR to RTL… but you could.
A container query can contain viewport units, meaning you can compare the window vs the element and make choices.
Use the `arc` command within the `shape()` function we can draw a line that follows a circle from one point to the next, controlling the direction.
Don’t underestimate `shape()` — it’s the CSS version of SVG
Container units (e.g. cqi) are only able to reference the closest container. But if you register a custom property and set that higher up, you can get your hands on other containers units.
Kinda like that “bento box” look.
Frontend Masters donates to open source projects through thanks.dev and Open Collective, as well as donates to non-profits like The Last Mile, Annie Canons, and Vets Who Code.