<style>
* {
box-sizing: border-box;
}
html, body {
align-items: center;
background: linear-gradient(45deg, #f62459, #674172);
display: flex;
justify-content: center;
margin: 0;
min-height: 100vh;
padding: 0;
width: 100vw;
}
div {
background-color: #fafafa;
height: 100px;
width: 100px;
}
</style>
<div></div>
<div></div>
<div></div>
div {
animation-name: spin;
animation-duration: 1s;
animation-timing-function: ease-out;
}
div:nth-of-type(1) {
animation-delay: 0s;
}
div:nth-of-type(2) {
animation-delay: .5s;
}
div:nth-of-type(3) {
animation-delay: 1s;
}
@keyframes spin {
0, 50% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.