Select Page

Eye SVG/CSS Animation

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%{...

Eyelids SVG/CSS animation

CSS @keyframes eyelids { 0%{ transform: translateY(0px); } 27.5%{ transform: translateY(2px); } 30%{ transform: translateY(2px); } 35%{ transform: translateY(0px); } 45%{ transform: translateY(0px); } 100%{ transform: translateY(0px); } } #left-eyelid, #right-eyelid...

How to know the length of the path in SVG?

How to know the length of the path in SVG to animate it with the stroke offset method? Well, the answer is very simple. Just use the following JavaScript and update its selector to that of the path you want to calculate the length of. Check the length value in the...