JSFiddle - React, Tailwind, and code Playground

by Joe Pigott

HTML

<!-- Right below is an image of the sun -->
        <img id="sun" src="http://goo.gl/dEEssP">
        <div id='mercury-orbit'>
            <img id ='mercury' src='http://i.imgur.com/HuJwYrA.png'>
        </div>
        <div id='venus-orbit'>
            <img id='venus' src='http://www.casa-doce.com.ar/images/circulo-rojo.png'>
        </div>
        <div id='earth-orbit'>
            <img id="earth" src="http://goo.gl/o3YWu9">
        </div>
        <div id='mars-orbit'>
            <img id='mars' src="http://www.casa-doce.com.ar/images/circulo-rojo.png">
        </div>

CSS

html, body {
    /* The universe takes up all available space */
    width: 100%;
    height: 100%;
    
    /* The universe is black */
    background-color: black;
}

#sun {
    position: absolute;
    /* Positions the top-left corner of the image to be *
    /* in the middle of the box */
    top: 50%;
    left: 50%;
    
    height: 200px;
    width: 200px;
    margin-top: -100px; 
    margin-left: -100px;
    
    border-radius:50%;
    
    box-shadow: 0 0 300px yellow;
}
#mercury {
    position: absolute;
    top:0;
    left:50%;
    
    height:30px;
    width:30px;
    margin-left:-25px;
    margin-top:-25px;
    
    border-radius:50%;
    
    box-shadow:0 0 70px gray;
}
#mercury-orbit {
    position: absolute;
    top:61%;
    left:56.5%;
    
    width:300px;
    height:300px;
    margin-top:-250px;
    margin-left: -250px;
    
    border-radius:50%;
    
    -webkit-animation: spin-right 5s linear infinite;
    -moz-animation: spin-right 5s linear infinite;
    -ms-animation: spin-right 5s linear infinite;
    -o-animation: spin-right 5s linear infinite;
    animation: spin-right 5s linear infinite;
}
#venus {
    position:absolute;
    top:0;
    left:50%;
    
    height:55px;
    width:55px;
    margin-left:-25px;
    margin-top:-25px;
    
    border-radius:50%;
    
    box-shadow: 0 0 120px red;
}
#venus-orbit {
    position:absolute;
    top:47%;
    left:48%;
    
    width:550px;
    height:550px;
    margin-top:-250px;
    margin-left:-250px;
    
    -webkit-animation: spin-right 7s linear infinite;
    -moz-animation: spin-right 7s linear infinite;
    -ms-animation: spin-right 7s linear infinite;
    -o-animation: spin-right 7s linear infinite;
    animation: spin-right 7s linear infinite;
}
#earth {
    position: absolute;
    top:0;
    left:50%;
    
    height:50px;
    width:50px;
    margin-left:-25px;
    margin-top:-25px;
    
    border-radius: 50%;
    
    box-shadow: 0 0 100px blue;
}
#earth-orbit {
    position: absolute;
...