{"id":303261,"date":"2020-02-20T14:49:25","date_gmt":"2020-02-20T21:49:25","guid":{"rendered":"https:\/\/css-tricks.com\/?p=303261"},"modified":"2020-02-20T14:49:27","modified_gmt":"2020-02-20T21:49:27","slug":"animate-svg-path-changes-in-css","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/animate-svg-path-changes-in-css\/","title":{"rendered":"Animate SVG Path Changes in CSS"},"content":{"rendered":"\n

Every once in a while I’m motivated to attempt to draw some shapes with <path><\/code>, the all-powerful drawing syntax<\/a> of SVG. I only understand a fragment of what it all can do, but I know enough to be dangerous. All the straight-line syntax commands (like L<\/code>) are pretty straightforward and I find the curved Q<\/code> command fairly intuitive. Box yourself into a viewBox=\"0 0 100 100\"<\/code> and drawing simple stuff doesn’t seem so bad.<\/p>\n\n\n\n\n\n\n\n

Here’s a classic example of mine that draws things with all the basic commands, but also animates them with CSS<\/em> (Chromium browsers only): <\/p>\n\n\n\n