This line of code for css animation dont run on safari -
.st0 { fill: #00a14b; stroke: #000000; stroke-width: 4; stroke-miterlimit: 10; } .st1 { fill: green; -webkit-animation: usage 2s normal forwards; animation: usage 2s normal forward; } @-webkit-keyframes usage { { height: 0; } { height: 72%; } } @keyframes usage { { height: 0; } { height: 72%; } }
<svg> <g id="stroker"> <polygon class="st0" points="39.395,10.166 39.395,2.02 25.898,2.02 25.898,10.166 5.404,10.166 5.404,102.403 59.89,102.403 59.89,10.166 " /> <rect x="25.898" y="2.02" width="13.755" height="9.839" /> </g> <g id="filler"> <rect x="6.96" y="11.335" class="st1" width="51.374" height="88" /> </g> </svg>
what goal animate fill of battery top bottom, indicate level of usage. after many attempts can't seem make work on safari.
basically want red fill battery turn green, testing.
i solve here: http://jsfiddle.net/3vpkq899/3/ seems need change height
in @keyframes
transform: scaley(100%)
Comments
Post a Comment