Here is a simple method to animate SVG path strokes <path id=”line1″ fill-rule=”evenodd” clip-rule=”evenodd” stroke=”#000000″ stroke-width=”2″ d=”M340.637 221.93H418.837V224.676H341.774L302.854...
You can easily create a path over the surface using Figma or similar software. First you will need to give the animating object some id or class then place it to the top left position of the SVG using the transform: translated() method and apply the following CSS...
Here is a simple example of animating any object inside SVG according to the path in SVG using its ID. You just need to make sure the object you animating is placed at the top leftmost point to make it overlap and move nicely on the path. <svg...
You can apply the following css to your SVG to animate it. For eyes, you will need to measure transform-origin i.e. distance of the center of each eye from the top and leftmost part of the SVG. /* Keyframes */ @keyframes eyes { 0%{ transform: scale(1,1); } 27.5%{...
You must be logged in to post a comment.