Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#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.