Forums

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

Home Forums CSS Rotating Animation with CSS Reply To: Rotating Animation with CSS

#239885
bearhead
Participant

ok, I looked at you javascript a little more and that does seem to be the issue. You can probably ignore what I wrote about the logo not being centered… I don’t think that is a problem anymore.

on lines 12 and 13 of your js I changed

x = 220 * Math.cos(angle) + 130;
y = 220 * Math.sin(angle) + 130;

to

x = 220 * Math.cos(angle) + 100;
y = 220 * Math.sin(angle) + 150;

and it seems to look ok now:
http://codepen.io/kvana/pen/oxwrmy