Home › Forums › CSS › [Solved] move constant ball on a circle from rotating ball to avoid collision › Reply To: [Solved] move constant ball on a circle from rotating ball to avoid collision
April 7, 2014 at 2:10 am
#167778
Paulie_D
Member
You’re animating the wrong object.
You don’t want the circle to rotate, you want the ball to rotate.
http://codepen.io/Paulie-D/pen/ujKsr/
Idea borrowed from Lea Verou : http://lea.verou.me/2012/02/moving-an-element-along-a-circle/
Exact positioning of the ‘static’ ball is a little more finicky.