Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Man I love this cool effect with CSS Conic gradients!

163,476 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

Code for this button effect here. Should few good replies pointing out how to do it without the extra element too.

Profilbild von Ana Tudor 🐯🖤🌻
Ana Tudor 🐯🖤🌻vor 1 Jahr

No need for any nesting/ pseudos. Make the `conic-gradient()` relative to `border-box` and restrict main button background layer to `padding-box`. Here's something similar for `img` elements + some added SVG `filter` enhancements (glow, rounding, tail...)

Profilbild von Jacob Wolf 🐝
Jacob Wolf 🐝vor 1 Jahr

Y’all need to get one of Apple’s frontend developers on the pod. They do so much innovative stuff on their product site.

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

Agreed! Very hard to get Apple employees on the podcast. We had Jen Simmons, but that took a bit. One more coming up shortly as well

Profilbild von Greg Robson on https://bsky.app/profile/gregrobson
Greg Robson on https://bsky.app/profile/gregrobsonvor 1 Jahr

Me when I see the effect: "Ooooh, would be better if slowed on the ends" @wesbos at the end of the video: oh, and if you wanted to slow it down on the ends of the button... Nice demo!👍

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

Just need a way to translate the aspect ratio of the button to a timing function. Could probably get away with a generic one though

Profilbild von Artem Kharchuk
Artem Kharchukvor 1 Jahr

I remember when I first created this effect; it was unforgettable 😂 In my opinion, this is one of the most beautiful effects for special buttons.

Profilbild von Ekpono
Ekponovor 1 Jahr

CSS is packed with many properties, really hard to keep up

Profilbild von Fre Timmerman
Fre Timmermanvor 1 Jahr

I believe it the convention is to select pseudo-elements with double colon ::before ? (To distinguish them from pseudo-classes which are selected with : one colon ) However apparently browsers also accept single-colon notation :before so 🤷🏻‍♂️

Profilbild von Wes Bos
Wes Bosvor 1 Jahr

Yeah there is no difference in the selectors, but you are right

Ähnliche Videos

MAN I LOVE CUTE GIRLS IN SUPER COOL KNIGHT ARMOR
1:48

Sensitive content

MAN I LOVE CUTE GIRLS IN SUPER COOL KNIGHT ARMOR

delty

1,412,673 Aufrufe • vor 1 Jahr