我想为渐变设置动画以“向右移动”,为此我必须为停止元素的偏移属性设置动画,但现在我只是成功地为停止颜色属性设置动画。
<linearGradient id="gr-simple" x1="0" y1="0" x2="100%" y2="0%">
<stop id = "first" stop-color="lightblue" offset="10%"/>
<stop id = "second" stop-color="red" offset="90%"/>
</linearGradient>
作品:
$("#first")
.delay(1500)
.velocity({stopColor: "#FF4E50" },{duration:1500});
不工作:
$("#first")
.delay(1500)
.velocity({offset: "50%"},{duration:1500});
非常感谢我能得到的任何帮助。谢谢