3D earth movement using CSS

in programming •  7 years ago 
Rotated Earth

My Earth Movement

.

css tag

p{
text-align: center;
font-weight: bold;
font-size: 30px;
color: rgb(18, 81, 139);
letter-spacing: 3px;
font-family: Georgia, 'Times New Roman', Times, serif;
}
.center{
position: absolute;
top: 150px;
left: 30px;
}
#earth{
background: url(htttps://images4.alphacoders.com/665/thumb-1920-665825.jpg);[** note : just remove one 't' from htttps]
background-size: cover;
width: 300px;
height: 300px;
border-radius: 100%;
box-shadow: -20px -20px 20px rgba(0, 0, 0, 0.87) inset,0 0 13px black;
animation: move 400s linear alternate infinite;
}
@-webkit-keyframes move{
100%{background-position: 10000%;}
}
#earth::before{
content: '';
position: absolute;
top: 265px;
left: 30px;
width: 255px;
height: 60px;
background: rgba(0, 0, 0, 0.781);
filter: blur(12px);
border-radius: 100%;
animation: shadow 4s linear infinite alternate;
z-index: -1;
}
@-webkit-keyframes shadow{
100%{width: 300px;background: rgba(0, 0, 0, 0.918);}
}

Copy and paste it ani see your result
Output is like this :
Screenshot_20180327-040633_1522102961014.jpg

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!