让一个新元素出现在 SVG.js 动画时间轴的中间
我有一个 SVG.js 动画时间轴,希望一些文本出现 5 秒。我想也许我可以这样做:
var popup = draw.text('Here is my text').attr({x:250, y:225 }).hide();
popup.animate(0, 5000).show();
hide() 有效,但 show() 不是动画方法。
I have a SVG.js animation timeline and want some text to appear 5 seconds in. I thought maybe I could do:
var popup = draw.text('Here is my text').attr({x:250, y:225 }).hide();
popup.animate(0, 5000).show();
The hide() works, but show() isn't an animation method.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 attr() 尝试设置初始 opacity: 0 并将其更改为 opacity: 1
我不认为 hide 或 show 是库方法
with attr() try setting the initial opacity: 0 and changing it to opacity: 1
I don't think either hide or show are library methods