简体   繁体   English

搜寻svg动画时间表

[英]seek in svg animation timeline

I have an animation in svg. 我在svg中有一个动画。 I would like to seek the animation. 我想寻找动画。 for example,I have a seek bar(can change positions using mouse click) and I have an animation in svg where the duration is 5 seconds. 例如,我有一个搜索栏(可以使用鼠标单击来更改位置),并且我在svg中有一个动画,持续时间为5秒。 Depending on the position of seek-bar, animation also changes. 根据搜索栏的位置,动画也会发生变化。

How can I do this ? 我怎样才能做到这一点 ?

调用setCurrentTime将调整动画时间线,只要在<svg>根元素上进行调整就可以对其进行搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM