I've encountered a challenge: I want to create a blinking eye using SVG. I have created the graphic and converted it into SVG. My plan is to apply a CSS animation to make it blink, but despite spending a lot of time on it, I can't seem to solve the issue.
My approach involves changing the height of its g element with CSS transitions to achieve the blinking effect. However, when I add the CSS code, the eye just disappears. Here's the CSS code I used:
#svg_7 path{
transform:scale(0, -1);
-webkit-transform:scale(0, -1);
}
SVG Code
<g id="svg_7">
<path id="svg_8" d="m35.99502,49.21692c-11.88306,0 -22.25696,5.59302 -27.80701,13.90399c5.55103,8.31104 15.92505,13.90302 27.80701,13.90302c11.88306,0 22.25696,-5.59198 27.80896,-13.90302c-5.55299,-8.31097 -15.92701,-13.90399 -27.80896,-13.90399z" stroke-miterlimit="10" stroke-width="1.4434" stroke="#fa5400" fill="transparent" />
<circle id="svg_9" r="9.83801" cy="63.12191" cx="35.995" stroke-miterlimit="10" stroke-width="1.4434" stroke="#fa5400" fill="transparent" />
Main goal is to create a blinking eye that continues to blink every few seconds. Any suggestions or solutions are welcome, even if it involves JavaScript/jQuery.
Thank you in advance, Kax