在ClojureScript中使用朗姆酒或试剂正常暂停或恢复SVG动画

问题描述 投票:1回答:1

如何在SVG中使用<animateTransform>元素暂停正在运行的SVG动画而不丢失动画状态?

在动画元素或父元素上设置animation-play-state: paused;无效。将repeatCount从indefinite更改为0,将失去动画状态。

animation svg clojurescript reagent rum
1个回答
0
投票

Kinda迟了,但这是在香草javascript中的操作方法:https://codepen.io/jjdewitt/pen/XJRqNK?editors=1010

© www.soinside.com 2019 - 2024. All rights reserved.