This kinda sums up better what CSS offset-path gives you 🏎️
jhey ʕ•ᴥ•ʔ
Visit on X@jh3yy147K followers
71,684 views
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 🤙
9 Comments
Comments from the original post on X (Twitter)

@namboozle
Going to rename bookmarks to Jheymarks
5 likes

@jh3yy
Haha – Saving that one 😅
1 like

@florinpop1705
Could you make the track be an 8 shape? 👀
2 likes

@jh3yy
Did one of them already 😉
14 likes

@Mandy_Kerr
What! This is awesome!’!
1 like

@JvShah124
That's cool 😎

@danielcranney
Amazing as always my man 👏

@uixmat
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

@jh3yy
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 🤙
1 like