<h1>Super simple CSS spinner</h1>
<div id="loading"></div>
@import url(https://fonts.googleapis.com/css?family=Roboto:100);
body { margin-top: 100px; background-color: #137b85; color: #fff; text-align:center; }
h1 {
font: 2em 'Roboto', sans-serif;
margin-bottom: 40px;
}
#loading {
display: inline-block;
width: 50px;
height: 50px;
border: 3px solid rgba(255,255,255,.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 1s ease-in-out infinite;
-webkit-animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
to { -webkit-transform: rotate(360deg); }
}
// recreating https://codepen.io/scottkellum/pen/tzjCK
// just to learn how he did it
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.