Skip to content

Instantly share code, notes, and snippets.

@mushfiqweb
Created May 28, 2017 14:18
Show Gist options
  • Select an option

  • Save mushfiqweb/cb70681c8d39cc12eb8a8c523649e7d7 to your computer and use it in GitHub Desktop.

Select an option

Save mushfiqweb/cb70681c8d39cc12eb8a8c523649e7d7 to your computer and use it in GitHub Desktop.
section {
height: 110px;
float: left;
width: 50%;
position: relative;
}
.spinner {
width: 50px;
height: 50px;
border-radius: 100%;
margin: auto;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
}
.model-1 {
background: #fff;
}
.model-1 .spinner {
color: #f00;
-webkit-animation: color-bubble 2s linear 0s infinite;
animation: color-bubble 2s linear 0s infinite;
}
.model-1 .spinner:after, .model-1 .spinner:before {
content: '';
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: 100%;
box-shadow: 0 0 0 3px;
-webkit-animation: spinner-bubble 1.3s linear 0s infinite;
animation: spinner-bubble 1.3s linear 0s infinite;
margin: auto;
width: 10px;
height: 10px;
opacity: 0;
}
.model-1 .spinner:before {
-webkit-animation: spinner-bubble 1.3s linear 2s infinite;
animation: spinner-bubble 1.3s linear 2s infinite;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment