I have a HTML5 video tag and a SVG animation. What I want to achieve - When the video is playing i want the animation moving with the same speed as the video. The animation looks like this
<animateTransform id='pathAnimation' xlink:href="#chartPath"
attributeName="transform"
attributeType="XML"
type="translate"
from=""
to=""
dur="1s" begin="indefinate" fill="freeze" />
So every second I change the from
and to
parameters. The result is really close for what I want to achieve but sometimes (once in couple of seconds) there is like tiny freeze/blink that I think come from the thing that I don't know how exactly to increment the from
and to
.
So how to make it work smooth with the video ?
Thank you in advance