unpkg CDN<\/a> to play with it in CodePen, if you want to try it out.<\/p>\n\n\n\nI look forward to seeing where this might go and hope we might see some native way of handling this in the future. 🙏<\/p>\n","protected":false},"excerpt":{"rendered":"
There was a discussion recently on the Animation at Work Slack: how could you make a CSS motion path responsive? What techniques would be work? This got me thinking. A CSS motion path allows us to animate elements along custom user-defined paths. Those paths follow the same structure as SVG paths. We define a path […]<\/p>\n","protected":false},"author":265369,"featured_media":306855,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[4],"tags":[1657,1661,1658],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/04\/responsive-motion-path.png?fit=1200%2C600&ssl=1","jetpack-related-posts":[{"id":307127,"url":"https:\/\/css-tricks.com\/different-approaches-to-responsive-css-motion-path\/","url_meta":{"origin":306066,"position":0},"title":"Different Approaches to Responsive CSS Motion Path","date":"April 24, 2020","format":false,"excerpt":"As a follow-up to Jhey's recent post on responsive motion paths, Michelle Barker notes that another approach could be to just transform: scale() the whole dang element. The trade-off there is that you're scaling both the path and the element on the path at the same time; Jhey's approach only\u2026","rel":"","context":"In "Link"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/04\/animated-motion-path.gif?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":299869,"url":"https:\/\/css-tricks.com\/motion-paths-past-present-and-future\/","url_meta":{"origin":306066,"position":1},"title":"Motion Paths \u2013 Past, Present and Future","date":"December 6, 2019","format":false,"excerpt":"Cassie Evans has a great intro to motion paths. That is, being able to animate an element along a path. Not just up\/down\/left\/right, but whatever curvy\/wiggly\/weird path you want. It's an interesting subject because there are so many different technologies helping to do it over time. SMIL, JavaScript-powered animation libraries,\u2026","rel":"","context":"In "Link"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2019\/12\/cassie-evans-motion-path.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":303113,"url":"https:\/\/css-tricks.com\/get-moving-or-not-with-css-motion-path\/","url_meta":{"origin":306066,"position":2},"title":"Get Moving (or not) with CSS Motion Path","date":"February 3, 2020","format":false,"excerpt":"We just linked up the idea that offset-path can be cleverly used to set type on a path. Don't miss Michelle Barker's experimentation either, with drawing paths or animating text along a path. Dan Wilson has also been following this tech for quite a while and points out why the\u2026","rel":"","context":"In "Link"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/02\/path.png?fit=1200%2C699&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":249797,"url":"https:\/\/css-tricks.com\/basic-shapes-path-never-twain-shall-meet\/","url_meta":{"origin":306066,"position":3},"title":"Basic Shapes & Path… Never the Twain Shall Meet?","date":"February 7, 2017","format":false,"excerpt":"There are some values available in CSS that allow shapes to be drawn. For example, there is a circle() function that is a valid value for a couple of CSS properties. \"Drawn\" might not be the right word, though. It's not like in SVG where you can create a element\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2017\/02\/round-clip-path.png?fit=500%2C420&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":302008,"url":"https:\/\/css-tricks.com\/set-type-on-a-circle-with-offset-path\/","url_meta":{"origin":306066,"position":4},"title":"Set Type on a Circle… with offset-path","date":"January 28, 2020","format":false,"excerpt":"Here's some legit CSS trickery from yuanchuan. There is this CSS property offset-path. Once upon a time, it was called motion-path and then it was renamed. I sort of rolled my eyes at the time, because the property is so obviously for animating things along a path. But you don't\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2019\/10\/circles-circles-circles.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":324484,"url":"https:\/\/css-tricks.com\/libraries-for-svg-drawing-animations\/","url_meta":{"origin":306066,"position":5},"title":"Libraries for SVG Drawing Animations","date":"November 11, 2020","format":false,"excerpt":"In 2013, Jake Archibald introduced this cool trick of animating an SVG path to look like it\u2019s drawing itself. It\u2019s 2020 now, and the trick is still popular. I\u2019ve seen it on a lot of websites I\u2019ve visited recently. I, too, feature an animated SVG loader on my website using\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/10\/castle-svg-texture.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"featured_media_src_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/04\/responsive-motion-path.png?fit=1024%2C512&ssl=1","_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/306066"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/265369"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=306066"}],"version-history":[{"count":5,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/306066\/revisions"}],"predecessor-version":[{"id":306798,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/306066\/revisions\/306798"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media\/306855"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=306066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=306066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=306066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}