23 retweeted
reminder to use `scrollbar-gutter: stable` if your layout shifts when the scrollbar disappears
Design Engineering 101:
Make your number steppers feel awesome.
A number stepper that only bumps once per click makes you click twenty times. Reward the hold. Animate it nicely with rolling digits, blur on transitions and gradient masks to avoid abrupt cuts.
23 retweeted
Calendars shouldn’t navigate.
They should reveal information in place.
inspired by @AdityaSur11
contrast-color() is landing in Chrome 147, making it Baseline Newly Available in all modern browsers.
This feature takes any color value and returns either black or white—whichever provides the highest contrast against the input color.
i.e. color: contrast-color(purple) returns white ⬇️
23 retweeted
`autofill` on inputs is ugly by default the background bleed ruins the clean design systems, especially in dark mode.
fixed it with a pure CSS inset shadow hack:
autofill:shadow-[inset_0_0_0px_1000px_var(--color-background)]
to force the background color and kill the native blue.
23 retweeted
Submenus on the web feel so brittle move the cursor even slightly off-angle and the whole thing snaps shut.
Native apps quietly forgive that with an invisible "intent zone" that keeps things open as you glide over.
tracks cursor direction, uses a dynamic triangle to detect safe movement, and prevents accidental closes.
inspired by @sorenblank code below
23 retweeted
Here's how I optimized loading 30+ looping videos without freezing the browser:
- Capped concurrent playback to ~3 via a simple manager (pause lowest-priority when adding new)
- Staged loading: near viewport → attach sources (start fetch), mostly visible → request play
- Added tiny base64 blur placeholders underneath for instant perceived load
here's how I optimized video assets on my site and improved perceived performance:
- added a tiny ( ~30px wide ) `base64` encoded blurred inline image for each snippet, rendered as an <img> underneath the video ( renders instantly! )
- moved all the videos to @Cloudflare CDN. previously was using @nextjs `/public` local path. which was fine when I had only 2-3 videos
- added both `.webm` and `.mp4` formats via <source> elements ( .mp4 as fallback in case browser doesn't support )
23 retweeted
sonner by @emilkowalski is already one of the most used toast libs in the React ecosystem.
and it actually has this problem as well.
a while back I wrote about preventing duplicate toasts by giving them an id.
same action, same id → update the existing toast.
no stacking. no spam. just clean feedback.
tiny API detail. huge UX upgrade.
bossadizenith.me/writings/so…
23 retweeted
I built Moreli as a modelling agency landing page to level up my animation and motion skills.
Tech stack: Next.js + Tailwind + Framer Motion.
Open to feedback what would you add or change to make it better?
moreli.vercel.app
23 retweeted
Your chance to get Tailark Pro at its lowest price. The offer ends in 18 hours.
pro.tailark.com










