svg animate - SVG issue : using values and calcmode -
i'm learning how animate svg.
i can animate between 2 shapes calcmode="spline", can animate between 3 shapes without calcmode="spline", can't animate between 3 shapes calcmode="spline".
here's example :
<animate attributename="d" attributetype="xml" begin="0" from="m662.1,170.5c-0.2,0-0.3-0.1-0.4-0.3l-3.5-7.9c-0.1-0.2,1-0.1,1-0.1l3.2,7.7c0.1,0.2,0,0.5-0.2,0.6 c662.2,170.5,662.1,170.5,662.1,170.5z" to="m704,146.5c-0.6,0-1.1-0.3-1.4-0.9l-12.4-28.1c-0.3-0.7,3.6-0.5,3.6-0.5l11.6,27.4c0.3,0.8,0,1.6-0.8,2 c704.4,146.4,704.2,146.5,704,146.5z" dur="2s" values=" m662.1,170.5c-0.2,0-0.3-0.1-0.4-0.3l-3.5-7.9c-0.1-0.2,1-0.1,1-0.1l3.2,7.7c0.1,0.2,0,0.5-0.2,0.6 c662.2,170.5,662.1,170.5,662.1,170.5z; m704,146.5c-0.6,0-1.1-0.3-1.4-0.9l-16.4-25.1c-0.3-0.7,3.6-0.5,3.6-0.5l15.6,24.4 c0.3,0.8,0,1.6-0.8,2c704.4,146.4,704.2,146.5,704,146.5z; m704,146.5c-0.6,0-1.1-0.3-1.4-0.9l-12.4-28.1c-0.3-0.7,3.6-0.5,3.6-0.5l11.6,27.4c0.3,0.8,0,1.6-0.8,2 c704.4,146.4,704.2,146.5,704,146.5z" calcmode = "spline" keysplines = "0 0.75 0.25 1" keytimes = "0;1;2" /> if remove values adjust keytimes="0;1", works. if remove calcmode, keysplines , keytimes, works. doesn't work together. did made mistake somewhere, or can't use both together?
thanks helping!
from svg specification:
the ‘keysplines’ values control points. thus, there must 1 fewer sets of control points there ‘keytimes’.
you've 1 keysplines value need 2 keytimes values. alternatively, need have 2 keysplines values in order support 3 keytimes values.
Comments
Post a Comment