Загрузка видео...

Не удалось загрузить видео

На главную

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

91,315 просмотров • 1 год назад •via X (Twitter)

Комментарии: 32

Фото профиля Haz
Haz1 год назад

Code:

Фото профиля Bernardo
Bernardo1 год назад

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

Фото профиля Haz
Haz1 год назад

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.

Фото профиля Brennan McEachran 👨‍🚀
Brennan McEachran 👨‍🚀1 год назад

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

Фото профиля ImAvibeCoder
ImAvibeCoder1 год назад

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

Фото профиля Ahmed Tawfik
Ahmed Tawfik1 год назад

True!, I made this using CSS

Фото профиля Tomer Lerner
Tomer Lerner1 год назад

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

Фото профиля V I S H A L 🧑🏻‍💻
V I S H A L 🧑🏻‍💻1 год назад

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

Фото профиля Benzigar Alvin.
Benzigar Alvin.1 год назад

wow, amazing..

Фото профиля Dom Sip
Dom Sip1 год назад

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

Фото профиля Alf | Motion designer
Alf | Motion designer1 год назад

Amazing work brother

Фото профиля Jigs
Jigs1 год назад

That's like an art 👨🏻‍🎨

Фото профиля yhigorrr (builder arc)
yhigorrr (builder arc)1 год назад

wow.

Фото профиля Nitish
Nitish1 год назад

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

Фото профиля Danish Mehrab 🌟
Danish Mehrab 🌟1 год назад

That's nice. 👌

Фото профиля Israel
Israel1 год назад

Great work 👏 👍

Фото профиля Ahmet the Cursebearer
Ahmet the Cursebearer1 год назад

Unfortunately Firefox does not support anchor()

Фото профиля Xiu
Xiu1 год назад

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

Фото профиля Naelo — 🇪🇺 eu/acc
Naelo — 🇪🇺 eu/acc1 год назад

Tailwind/radix variant?

Фото профиля Dovy
Dovy1 год назад

very clean 👌

Фото профиля at5
at51 год назад

@leodebar38842 👀

Фото профиля Elyakim
Elyakim1 год назад

Beautiful & Beneficial.

Фото профиля Nizam
Nizam1 год назад

wow, awesome

Фото профиля Hypno
Hypno1 год назад

Liquid glass? Nah, we got solid glass

Фото профиля Utsav Ladani
Utsav Ladani1 год назад

Yeah, CSS is evolving in a great way. Many popular UI patterns can be achieved just using HTML and CSS.

Фото профиля Andrey
Andrey1 год назад

beatiful

Фото профиля freddie
freddie1 год назад

without anchor-scope the amount of hacks needed to ensure adding two of the same radio group won’t lead to weird behaviours is annoyingly big but it’s coming!

Фото профиля Eric
Eric1 год назад

I used to code this for projects when AI doesn’t exist. I can share my old codes

Фото профиля Frédéric BERRIA
Frédéric BERRIA1 год назад

Sweet.

Фото профиля origami
origami1 год назад

def stealing. thnx for the snippet

Фото профиля mateja
mateja1 год назад

it looks nice for post on twitter, but for actual purpose, having 2 buttons in some kind of similar state may be very confusing to potential users

Фото профиля Ziyad
Ziyad1 год назад

It's sad that many won't know because people will use any tool to avoid writing css, tailwind css-in-js you name it

Похожие видео