正在加载视频...
视频加载失败
CSS Tip! 🎠 You can create a responsive infinite marquee animation with container queries and no duplicate items 🤙 li{ animation: slide; } @keyframes slide { to { translate: 0% calc(var(--i) * -100%);}} The trick is animating the items, not the list 😎 More tricks 👇 To get this... show more
541,845 次观看 • 2 年前 •via X (Twitter)
10 条评论

jhey ▲🐻🎈2 年前
Here's that @CodePen link! 🚀 Should be good across the board 😎 Because now we have cross-browser compatibility for: – :has() ✅ – container queries ✅

Steven Tey2 年前
I’ve never smashed the bookmark button so quickly in my entire life — thank you for sharing this!! 👏

jhey ▲🐻🎈2 年前
Ha – You're welcome dude! 🤙 Love building out things like this, so thank you 🙏 Came at a good time because I need the technique for a lil landing page 🙌

Steven Tey2 年前
🤯🐐

jhey ▲🐻🎈2 年前
Haha 😂

Malthe Hartmann2 年前
@elonmusk we need a better way to share code on @X

jhey ▲🐻🎈2 年前
@elonmusk @X 💯😅

Delali2 年前
@blueaelixir

Helge Ahrens2 年前
Where is the pen though?

jhey ▲🐻🎈2 年前
Sorry 🤦♂️ Did my classic. It's there now 🙏 If ever it isn't posted. It should be the most recent pen on my CodePen profile 🫶
