#tinyCSStip If you make an element a container, a `position: absolute` child is going to be positioned relative to it, which can be very problematic if you were counting on positioning it relative to another ancestor.
Love this pattern 🤩
CSS :has() powered custom cursors are a fun one! 💯
These :hover image tips are achieved with :has() and :nth-of-type ⭐️ Probably worthy of their own video 🤔
You only need a couple lines of JavaScript to pass the pointer position through 🤙
Color.js (https://t.co/efpcIlX86L) has now been downloaded 2 million times on @npmjs! 🎉
To celebrate its upcoming v0.5.0 release, we want to list of all the ways it has been impactful.
If you maintain a popular tool/app that uses Color.js, please let us know so we can add it!
⚠️En raison des blocages routiers en cours, la circulation est coupée sur :
➡l’A47 dans le secteur de Givors à partir de la sortie 9.3 (Lyon/StÉtienne) et de la sortie 11 (StÉtienne/Lyon).
➡️la M6 entre la jonction avec l’A89 (Paris/Lyon) et la sortie 34 (Lyon/ Paris).
#tinyCSStip Ever want an element to be responsive, always fit within a certain `--max` (for ex. `95vmin`), but also want its size to always be a multiple of a certain `--val` (for ex. `15px`)?
Sizing an element in steps, if you will.
🆕 CSS mathematical functions to the rescue!
Here's that @CodePen link! 🚀
This was another demo from the 2022 conference run 😎
Again. I'll be writing these up for the new version of https://t.co/ld0AJEMSTN that is close to being put together 🙌 Jus' wanna make sure I have most things in first
https://t.co/yZIBF7e3ZC
Since `:has()` is now cross-browser 🥳 here's what's still my 🌟 top 🌟 use case for it: theme switching!
In the very simple case, when we want to switch from a light to a dark theme, we switch `--dark` from `0` to `1` on the `body` when the dark theme option is selected.
Erik implemented a major update on his fantastic color generator - UI Colors:
✢ Lock the input color
✢ Generate & edit color scale on the same page
✢ Shift hues with a slider
✢ Save custom color scales
https://t.co/0qfsAhFwfn
via @erikdevries_nl
i was aiming for a low level primitive <RenderCubeTexture> but this morning i woke up to @garrettkjohnson fixing pointer event raycast, which made a <Fisheye> feasible and self contained without downsides. so drei has that now. 🍻
<Fisheye>
<Scene />
</Fisheye>
demos below ↓
Must be time for the Q4 nested radius post 📅
Remember, the CSS tip is that you can use custom properties to work out the nested radius of elements for you 😎
.panel {
--radius: 28px;
--padding: 8px;
--nested-radius: calc(var(--radius) - var(--padding);
}
.content {
border-radius: var(--nested-radius);
}
Here's an interactive visual you can mess with 🤙
@CodePen link below 👇
Quelqu'un a déjà testé #CodeGPT ?
Perso je ne suis pas trop les outils d'IA parce-que y'en a trop, mais là ça a l'air vraiment stylé.
https://t.co/DKmZSVb40N