css-tricks.com

CSS shape() Commands

The CSS shape() function recently gained support in both Chromium and WebKit browsers. It’s a way of drawing complex shapes when clipping elements with the clip-path property.

css-tricks.com

Revisiting Image Maps

Let’s run through a quick refresher. Image maps date all the way back to HTML 3.2, where, first, server-side maps and then client-side maps defined clickable regions over an image using map and area elements.

css-tricks.com

Next Level CSS Styling for Cursors

Custom cursors with CSS are great, but we can take things to the next level with JavaScript. Using JavaScript, we can transition between cursor states, place dynamic text within the cursor, apply complex animations, and apply filters.

css-tricks.com

Tailwind’s @apply Feature is Better Than it Sounds

Most of the time, people showcase Tailwind’s @apply feature with one of Tailwind’s single-property utilities (which changes a single CSS declaration). When showcased this way, @apply doesn’t sound promising at all. So obviously, nobody wants to use it. Personally, I think Tailwind’s @apply feature is better than described.

css-tricks.com

CSS Carousels

Chrome has prototyped these features and released them in Chrome 135. Adam Argyle has a wonderful explainer over at the Chrome Developer blog. Kevin Powell has an equally wonderful video where he follows the explainer. This post is me taking notes from them.

css-tricks.com

SMIL on?

Well, it turns out that SVG’s built-in animation features were never deprecated as planned. Sure, CSS and JavaScript are more than capable of carrying the load, but it’s good to know that SMIL is not dead in the water as previously thought, and is actually well-supported.

css-tricks.com

Revisiting CSS border-image

I’ve used border-image regularly. Yet, it remains one of the most underused CSS tools, and I can’t, for the life of me, figure out why. Is it possible that people steer clear of border-image because its syntax is awkward and unintuitive? Perhaps it’s because most explanations don’t solve the type of creative implementation problems that most people need to solve. Most likely, it’s both.

css-tricks.com

Quick Hit #41

Ooo, look at that: Safari Technology Preview 215 adds support for scroll-driven animations, anchor positioning, and text-wrap: pretty. That’s a …