jQuery animating along a sine wave

前端 未结 6 1748
-上瘾入骨i
-上瘾入骨i 2021-01-20 01:02

I\'ve spent a couple days at this and I give up.

I\'m trying to get an object to animate along a sine wave infinitely. It should not end after the first period.

6条回答
  •  暖寄归人
    2021-01-20 01:19

    You can use PathAnimator to animate anything along any path. you only need the SVG coordinates that describe your path.

    Demo Page

提交回复
热议问题