gpt4 book ai didi

javascript - 如何停止 animatePNG 动画?

转载 作者:行者123 更新时间:2023-11-30 17:51:59 25 4
gpt4 key购买 nike

我正在使用这个库来制作 PNG 图像的动画:https://github.com/pixelmatrix/animatePNG

源代码列出了一个 stop() 方法,但我该如何调用它?我想停止动画。

来源:https://github.com/pixelmatrix/animatePNG/blob/master/animatePNG.js

最佳答案

这看起来有点奇怪,但我是这样做的:

var $c = $("#container").animatePNG("spinner.png", 37, 37, 11, {horizontal: false});
$c.animatePNG.stop($c); // stop animation

关于javascript - 如何停止 animatePNG 动画?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18830827/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com