This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Sun, Earth, and Code Forum

View Course » View Exercise

383 points
53c686da8c1ccca727002c5f_215949160
Submitted by
ViV6102_53a9c28c80ff33b5b50008e1_del
over 3 years ago

Why won't my Earth orbit around the sun?

This isn't working. I copied every bit of animation they told us to put in the style.css. Here's my code:
http://www.codecademy.com/ViV6102/codebits/dlzn0z/edit


0 votes

permalink

You forgot to include the ending function, in order to make it actually orbit.

@keyframes spin-right {
100% {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}

269 points
53d9928480ff33a7f600065b_139466516
Submitted by
Okima
over 3 years ago


0 votes

permalink

383 points
53c686da8c1ccca727002c5f_215949160
Submitted by
ViV6102_53a9c28c80ff33b5b50008e1_del
over 3 years ago


0 votes

permalink

It is spinning, most likely a problem with your browser.

269 points
53d9928480ff33a7f600065b_139466516
Submitted by
Okima
over 3 years ago

3 Comments

53c686da8c1ccca727002c5f_215949160 ViV6102_53a9c28c80ff33b5b50008e1_del over 3 years ago

.........I do have an old version of Firefox (Firefox 2.0)..............

Picture Stanisław Sipowicz over 3 years ago

I have a new version of Chrome and "Earth" only revolves around its own orbit...

5703940c5917ecbfcc0003b2_537713534 supercool12 almost 3 years ago

Try quitting and then logging back in