Are Custom Properties a “Menu of What Will Change”?

PPK laid out an interesting situation in “Two options for using custom properties” where he and Stefan Judis had two different approaches for doing the same thing with custom properties. In one approach, hover and focus styles for a …

The post Are Custom Properties a “Menu of What Will Change”? appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

https://css-tricks.com/are-custom-properties-a-menu-of-what-will-change/

Vytvorené 4y | 2. 6. 2021, 15:21:22


Ak chcete pridať komentár, prihláste sa

Ostatné príspevky v tejto skupine

A Radio Button Shopping Cart Trick

Here's an approach for animating products added to a shopping cart that handles an infinite number of items using a variation of the ol' Checkbox Hack.


27. 8. 2025, 15:20:41 | CSS tricks
Getting Creative With Images in Long-Form Content

Images in long-form content can (and often should) do more than illustrate. They help set the pace, influence how readers feel, and add character that words alone can’t always convey.


<p

25. 8. 2025, 19:20:11 | CSS tricks
3D Layered Text: Interactivity and Dynamicism

In this third and final chapter, we’re stepping into interactivity by adding JavaScript, starting with a simple :hover effect, and ending with a fully responsive bulging text that foll

22. 8. 2025, 14:40:37 | CSS tricks
3D Layered Text: Motion and Variations

In this chapter, we will explore ways to animate the effect, add transitions, and play with different variations. We will look at how motion can enhance depth, and how subtle tweaks can create a wh

20. 8. 2025, 14:10:10 | CSS tricks
3D Layered Text: The Basics

A client asked me to create a bulging text effect. With a bit of cleverness and some advanced CSS, I managed to get a result I’m genuinely proud of, which is covered in this three-part series.

18. 8. 2025, 15:40:13 | CSS tricks
A Few Things About the Anchor Element’s href You Might Not Have Known

It's easy to take URL superpowers for granted, even if you already have these patterns under your belt.


15. 8. 2025, 15:50:10 | CSS tricks
Covering hidden=until-found

Short story: Slapping hidden=until-found on an element in HTML enables any hidden content within the element to be findable in the browser with in-page search.


15. 8. 2025, 13:30:21 | CSS tricks