Skip navigation
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

@diegohaz13K followers

Visit on X
1,414 likesDownloadOriginal post

91,334 views

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

32 Comments

Comments from the original post on X (Twitter)

  • Haz's profile picture

    @diegohaz

    Code:

    135 likes

  • Bernardo's profile picture

    @bernardohulsman

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

    9 likes

  • Haz's profile picture

    @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 likes

  • Brennan McEachran 👨‍🚀's profile picture

    @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 likes

  • ImAvibeCoder's profile picture

    @ImAVibeCoder

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

    5 likes

  • Ahmed Tawfik's profile picture

    @TeslaLeftArm

    True!, I made this using CSS

    4 likes

  • Tomer Lerner's profile picture

    @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 likes

  • V I S H A L 🧑🏻‍💻's profile picture

    @vish_dev09

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

    2 likes

  • Benzigar Alvin.'s profile picture

    @benzigar_alvin

    wow, amazing..

    1 like

  • Dom Sip's profile picture

    @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 like

  • Alf | Motion designer's profile picture

    @Alf_Motion

    Amazing work brother

    1 like

  • Jigs's profile picture

    @debugsenpai

    That's like an art 👨🏻‍🎨

    1 like

  • yhigorrr (builder arc)'s profile picture

    @yhigorrr

    wow.

    1 like

  • Nitish's profile picture

    @nitishksr

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

    1 like

  • Danish Mehrab 🌟's profile picture

    @DanishMehrab_

    That's nice. 👌

    1 like

  • Israel's profile picture

    @_IzzyCreates

    Great work 👏 👍

    1 like

  • Ahmet the Cursebearer's profile picture

    @acvarisli

    Unfortunately Firefox does not support anchor()

  • Xiu's profile picture

    @Xiu27976692

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

  • Naelo — 🇪🇺 eu/acc's profile picture

    @naelodev

    Tailwind/radix variant?

  • Dovy's profile picture

    @DovyRuo

    very clean 👌