Loading video...
Video Failed to Load
This kinda sums up better what CSS offset-path gives you 🏎️ A responsive way to animate an element along the perimeter of another 🎬 Use the rect() value to control the inset of that path ✨ And the great thing is, it's responsive 🤙
71,497 views • 2 years ago •via X (Twitter)
9 Comments

Andy Hawkes2 years ago
Going to rename bookmarks to Jheymarks

jhey ▲🐻🎈2 years ago
Haha – Saving that one 😅

Florin Pop 👨🏻💻2 years ago
Could you make the track be an 8 shape? 👀

jhey ▲🐻🎈2 years ago
Did one of them already 😉

Mandy Michael2 years ago
What! This is awesome!’!

Javaid Shah2 years ago
That's cool 😎

Daniel Cranney 🇬🇧2 years ago
Amazing as always my man 👏

Matt2 years ago
Speed/length of animation should really depend on the track too, that’s an issue with “responsive animations” for lack of a better term. I guess we’d just set it with js based on vp size

jhey ▲🐻🎈2 years ago
Can jus' use a container query. @container (width < 300px) { .car { animation-duration: 2s; } } Didn't add this in because wasn't really what the demo was getting at 🤙
