跳过导航
It's amazing how much you can do with CSS these days.
0:00 / 0:20

It's amazing how much you can do with CSS these days.

Haz

@diegohaz1.3万 位关注者

在 X 上查看
1,414 个赞下载原帖

91,334 次观看

It's amazing how much you can do with CSS these days.

32 条评论

评论来自 X (Twitter) 上的原帖

  • Haz 的头像

    @diegohaz

    Code:

    135 个赞

  • Bernardo 的头像

    @bernardohulsman

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

    9 个赞

  • Haz 的头像

    @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 个赞

  • Brennan McEachran 👨‍🚀 的头像

    @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 的头像

    @ImAVibeCoder

    Designers are spoiled now: colors, motion and layout magic from one file, clients notice.

    5 个赞

  • Ahmed Tawfik 的头像

    @TeslaLeftArm

    True!, I made this using CSS

    4 个赞

  • Tomer Lerner 的头像

    @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 个赞

  • V I S H A L 🧑🏻‍💻 的头像

    @vish_dev09

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

    2 个赞

  • Benzigar Alvin. 的头像

    @benzigar_alvin

    wow, amazing..

    1 个赞

  • Dom Sip 的头像

    @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 designer 的头像

    @Alf_Motion

    Amazing work brother

    1 个赞

  • Jigs 的头像

    @debugsenpai

    That's like an art 👨🏻‍🎨

    1 个赞

  • yhigorrr (builder arc) 的头像

    @yhigorrr

    wow.

    1 个赞

  • Nitish 的头像

    @nitishksr

    The Fact is people uses js for things that can be possible with css only

    1 个赞

  • Danish Mehrab 🌟 的头像

    @DanishMehrab_

    That's nice. 👌

    1 个赞

  • Israel 的头像

    @_IzzyCreates

    Great work 👏 👍

    1 个赞

  • Ahmet the Cursebearer 的头像

    @acvarisli

    Unfortunately Firefox does not support anchor()

  • Xiu 的头像

    @Xiu27976692

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

  • Naelo — 🇪🇺 eu/acc 的头像

    @naelodev

    Tailwind/radix variant?

  • Dovy 的头像

    @DovyRuo

    very clean 👌