weepy / jquery.path

Animatation for arcs and bezier curves with jQuery
http://weepy.github.com/jquery.path/
407 stars 79 forks source link

How to animate along on oval #12

Open reubenlara opened 12 years ago

reubenlara commented 12 years ago

Trying to find a way to animate the center point of arc down, then up within the same timeframe that an arc completes 360º. This would theoretically create an oval shape. I've tried chaining animate marginTop chains, etc etc but just can't get it to work right. Would love to be able to just provide an argument to the center point of the arc to offset the circle and get the same effect... possible?

weepy commented 8 years ago

You should be able to do this with a bit of maths and a custom path.