It's amazing how much you can do with CSS these days.
91,334 次观看
32 条评论
评论来自 X (Twitter) 上的原帖

@diegohaz
Code:
135 个赞

@bernardohulsman
Nice! No JS needed is really a must for responsive menu's. Too bad it doesn't work in Firefox though.
9 个赞

@diegohaz
Yeah, I didn't write it in CodePen, but it's possible to support Firefox and Safari < 26 by gracefully degrading to a static version without anchor positioning or animation.
12 个赞

@i_am_brennan
You could add an svg filter on that too and get a gooey blob as it goes into/out of the active state. All w/o JS
6 个赞

@ImAVibeCoder
Designers are spoiled now: colors, motion and layout magic from one file, clients notice.
5 个赞

@TeslaLeftArm
True!, I made this using CSS
4 个赞

@TomerLerner
Css is where my most delightful moments in programming at, and where AI is nowhere near the helper it is in other areas of the application. CSS = the last frontier of the bright shining human creativity in development
4 个赞

@vish_dev09
Super cool! 🚀 With @MisakiStudio_ , you can achieve this too—only faster, and directly as React components ready to use.
2 个赞

@benzigar_alvin
wow, amazing..
1 个赞

@dom_sipowicz
Yeah we need a @shadcn equivalent to typical components created only with HTML + CSS. Main use case is MegaNav. The web would be a much better place
1 个赞

@Alf_Motion
Amazing work brother
1 个赞

@debugsenpai
That's like an art 👨🏻🎨
1 个赞

@yhigorrr
wow.
1 个赞

@nitishksr
The Fact is people uses js for things that can be possible with css only
1 个赞

@DanishMehrab_
That's nice. 👌
1 个赞

@_IzzyCreates
Great work 👏 👍
1 个赞

@acvarisli
Unfortunately Firefox does not support anchor()

@Xiu27976692
Anchor is a magical thing. He should become a standard css.

@naelodev
Tailwind/radix variant?

@DovyRuo
very clean 👌











