Terry retweeted
CSS-only magnetic link effect π€―
li:has(a:is(:hover, :focus-visible)) {anchor-name: --a; }
ul::before {
left: anchor(--a left);
width: anchor-size(--a width);
}
using CSS anchor positioning, declare an anchor on hover for the indicator π
Terry retweeted
And you could do the whole thing without JavaScript π€
β’ Use the HTML [popover] API (nested)
β’ CSS starting-style to transition open/close βοΈ
β’ Anchor positioning βοΈ
<button popovertarget="menu"></button>
<div popover="auto" id="menu"></div>
unavailable
Terry retweeted
Quick CSS tip: if you want to select the nth element with a certain class, `:nth-child` supports an `of` syntax. π
Terry retweeted
I donβt think people are really understanding this cover.
Inside this weekβs issue of The New Yorker: newyorker.com/magazine
Terry retweeted
Time to talk about one of the strangest TypeScript tricks around.
It's the loose autocomplete trick. And it's ACTUALLY USEFUL for app development.
Let me explain π§΅
Terry retweeted
Node 22.6.0 just added TypeScript support π₯
if you're planning to use it, you'll need these two lines in your tsconfig.json.
Brief explainer in a π§΅
Terry retweeted
So, Google Chrome gives all *.google.com sites full access to system / tab CPU usage, GPU usage, and memory usage. It also gives access to detailed processor information, and provides a logging backchannel.
This API is not exposed to other sites - only to *.google.com.
Terry retweeted
50% of Tourists: "I love Singapore. It's so cool and futuristic"
Other 50% of Tourists: "I hate Singapore. It's so artificial and expensive"
Singapore in Question:



































