CSS Tip! 🍬 You can create a CSS-only sticky CTA using position: sticky or scroll-driven animations 🤙…
@jh3yy146K followers
133,020 views
10 Comments
Comments from the original post on X (Twitter)

@jh3yy
Here's that @CodePen link! 🤙 Tried it out in Chrome, Safari, Firefox, and iOS. Should be all good 🙏
53 likes

@TasonJorres
Just plain wow man.
5 likes

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

@ah3mba
wow
1 like

@vedatsozen
I make it by using scrollY .. I make it visible when scrollY is more than a specific pixel.
1 like

@jiafengwang_yo
nice
1 like

@iamabhishek22_
Just the time I decide that I've known enough CSS, this man tweets. 😅😭
1 like

@jh3yy
Haha 🙏

@__jorgeserrano
You are god.

@JoshSanger_eth
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! 🙈😅