Загрузка видео...
Не удалось загрузить видео
CSS Tip! 🍬 You can create a CSS-only sticky CTA using position: sticky or scroll-driven animations 🤙 .cta { position: sticky; margin-top: 110vh; bottom: 2rem; /* 👈 Stick! */ } This is one way 👀 This first way relies on you setting a layout on the body and putting... show more
132,979 просмотров • 2 лет назад •via X (Twitter)
Комментарии: 10

jhey ▲🐻🎈2 лет назад
Here's that @CodePen link! 🤙 Tried it out in Chrome, Safari, Firefox, and iOS. Should be all good 🙏

Jason Torres2 лет назад
Just plain wow man.

freddie2 лет назад
the margin top idea is already genius by itself, but after reading the scroll driven animation code, I’m so happy to be living in this day and age of css

Okorite2 лет назад
wow

リ 乇 刀 卂 丅 丂 口 乙 乇 𠘨2 лет назад
I make it by using scrollY .. I make it visible when scrollY is more than a specific pixel.

jiafeng wang2 лет назад
nice

Abhishek Rawat2 лет назад
Just the time I decide that I've known enough CSS, this man tweets. 😅😭

jhey ▲🐻🎈2 лет назад
Haha 🙏

George2 лет назад
You are god.

Joshsanger.eth2 лет назад
This is awesome. Love the different approaches. The animation-timeline is my fav! Can't wait for Safari to get there. Also the number of open tabs is the cherry on top! 🙈😅
