Konstantin Dankov retweeted
morphing popover menu 🪄
css can let you detect the active anchor position
@container anchored(fallback: --top-left)
popover stays full size; content grows from the grid origin that the fallback sets ↓
yes and no 🤙
in Chrome, yes. jus' need a little CSS to work out which side the popover opens on. if you don't need that, you can do it with html + css alone ✨
teapaw.org/jh3yy/status/201634258…
Konstantin Dankov retweeted
psa: keep your css :has() rules tight 🙇♂️
no wildcards, broad targets
.component:has(.something) button 🚫
agents love slappin' :has() on a landmark but that has the potential to cause huge style recalcs from rules you might think are unrelated 🧑🔬
Today is a good day! Time to check in on the bobs #bobiverse
This will be epic!
1
31
Konstantin Dankov retweeted
update: now you can use css progress() for adaptive radius, shadow, etc. ↓
same trick, but progress() does the division + clamps for you! 🧑🍳
.card__surface {
--r: 42px; --g: 24px;
border-radius: calc(
progress((100vi - 100cqi) / 2, 0px, var(--g)) * var(--r)
);
}
Konstantin Dankov retweeted
they should've called it "artificial knowledge" rather than artificial intelligence
Konstantin Dankov retweeted
Having a Design Engineer (aka UX Engineer) on your team is a game changer. Attention to detail, product quality, velocity, all benefit from this hybrid role.
Yet most tech companies overlook the importance of having people that excel at “front-of-the-front-end” work.
Konstantin Dankov retweeted
Here it is with DevTools open 👀
Can slow down those cross-document View Transitions and see the network requests coming in 🤙
Could totally spend time tweaking different parts of the transition, timing, etc. ✨
Konstantin Dankov retweeted
no js
💡 CSS Tip!
Using scroll-driven animations, you can link a CSS variable with a range slider and easily update its value!
No more JavaScript to do this. A few lines of CSS, one HTML element and you can update any value in real time.
@CodePen demo in the reply 👇
Konstantin Dankov retweeted
🔗 Alternatives to Using Pure Black (#000000) for Text and Backgrounds
uxplanet.org/alternatives-to…
#a11y #design
Almost forgot. Bobiverse book 5 is out and its great!
audible.com/pd/Not-Till-We-A…
38
Really awesome talk to open CSS Day. All presentations are worth watching btw.
Web Design Engineering With the New CSS | Matthias Ott | CSS Day 2024
youtube.com/watch?v=su6WA0kU…
38
Konstantin Dankov retweeted
Replying to @KevinJPowell
Auto margins with flexbox. It usually reduces so much code, but I hardly see people using it. People know it, but don’t seem to be using it when required.
Here’s an article I found - css-tricks.com/the-peculiar-…
Konstantin Dankov retweeted
Replying to @KevinJPowell
Konstantin Dankov retweeted
New course by @lydiahallie: Testing Your JavaScript Knowledge!
Challenge yourself with 50 interactive quiz questions on the event loop, scopes and closures, the "this" keyword, classes and prototypes, garbage collection, and more frontendmasters.com/courses/…
Konstantin Dankov retweeted
🥳🔥 Published a new JavaScript Visualized post @ThePracticalDev!
dev.to/lydiahallie/javascrip…
Konstantin Dankov retweeted
Replying to @alvaro_montoro
Overcomplicating that animation.
Never got to share these publicly, but here's a simple rolling square codepen.io/thebabydino/pen/d…
... one going around a band codepen.io/thebabydino/pen/d… - a more complex version
See also codepen.io/thebabydino/pen/Q… - but this can also be simplified
Konstantin Dankov retweeted
For today's toggle, I wanted to create a spinning experience... but I wasn't convinced by it, so I ended up creating two alternatives 😅
I personally like the third one. What do you think?
Demos on CodePen:
codepen.io/alvaromontoro/pen…
codepen.io/alvaromontoro/pen…
codepen.io/alvaromontoro/pen…



















