Another one for the Almanac!
css-tricks.com/almanac/func...
Posts by Juan Diego Rodríguez
Select multiple dates on a calendar where the :nth-child()'s “n of selector” syntax does all the heavy lifting. Perfect example of CSS and JS working together in harmony.
css-tricks.com/selecting-a-...
Forgot to say that it's FREE (!)
Hey everyone! I am super excited to announce that, in exactly one month (Wednesday, May 6), I'll be speaking at Meets Style Sheets by @smashingconf.com about Anchor Positioning!!!
I'll start the countdown now: 30 days left 👀
Get your tickets here! smashingconf.com/meets-style-...
Has CSS gone too far?
A little gem @monknow.bsky.social stumbled into when working on something... we can center an absolutely positioned element with justify-self:
.element {
position: absolute;
place-self: center;
inset: 0;
}
He explains it nicely here:
css-tricks.com/yet-another-...
Thanks for the feature!!
The progress() function is sorta like clamp() but returns 1 or 0. Combine it with calc() and you can get weird with it.
css-tricks.com/almanac/func...
I have a new article up trying to make the perfect pie chart in CSS! There is probably a lot to improve, so a little feedback would be much appreciated
The CSSWG just resolved to add this to the spec 🥳
github.com/w3c/csswg-dr...
I was lucky to be a privileged tester of @codepen.io 2.0, and now they have released the Private Beta.
codepen.io/beta
It's finally time to unleash some cool "View Transition" demos because with the 2.0 version, we can have many pages in one pen 👀
Kudos to @chriscoyier.net and the entire team!
What if, instead of telling the LLM step by step how to do a task, we write those steps ourselves? 🤯
About to have CSS ANCHOR POSITIONING FULLY CROSS-BROWSER!!
Congrats Sunkanmi!
My last post on trigonometric functions just got published!!
Thanks so much to anyone who gave it a read :)
The second part on trigonometric functions just got published. 🧡
The first part got a lot of reads, so thanks so much! A third and last part will be coming soon 👀
!!!
CSS trig functions make wayyy more sense the way @monknow.bsky.social explains then, even to non-math-y folks like me.
He's put together explainers on sin(), cos(), and tan().
⭐️ css-tricks.com/almanac/func...
⭐️ css-tricks.com/almanac/func...
⭐️ css-tricks.com/almanac/func...
Thanks so freaking much, Vale 😭😭😭
A new one for CSS-TRICKS!!!
"Avatar Indicators, using CSS Mask / Trig" by Simon Goellner
codepen.io/simeydotme/p...
New one on CSS-Tricks!!
Talking about sin() and cos() here, but we'll get to the rest of trig functions later on ;)
Glad to see I am not the only one 🫂
Is it just me, or is the CSSWG drafts site loading without styles?
(E.g.: drafts.csswg.org/css-anchor-p...)
I can't express how awesome and supportive the CSS community is!! THANKS :)
Everything you ever wanted, or needed, to know about radial gradients, courtesy of @monknow.bsky.social — even digging into those tricky hue interpolation and radial-extent keywords.
css-tricks.com/almanac/func...
css-tricks.com/almanac/func...
Here’s one from @dxnny.fun covering many ways to juggle line length when working with text... including two proposed properties that could make it easier in the future.
css-tricks.com/setting-line...
It's amazing how much I've learned just from working with you. Really grateful too🫂🫂🫂
I do a terrible job highlighting recent work that's gone into the CSS-Tricks almanac.
A few choice samples:
- view(): css-tricks.com/almanac/func...
- ::target-text: css-tricks.com/almanac/pseu...
- shape(): css-tricks.com/almanac/func...
- sibling-count(): css-tricks.com/almanac/func...
New one!!!