Created
December 16, 2015 09:50
-
-
Save ahvonenj/27e188d6ebc4fa9ac787 to your computer and use it in GitHub Desktop.
Make element fill any element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.mmloader_container | |
{ | |
width: 100%; | |
height: 100%; | |
display: flex; | |
display: -webkit-flex; | |
align-items: center; | |
justify-content: center; | |
-webkit-align-items: center; | |
-webkit-justify-content: center; | |
background-color: #2c3e50; | |
} | |
.mmloader | |
{ | |
margin: 0; | |
font-size: 10px; | |
position: relative; | |
text-indent: -9999em; | |
border-top: 1.1em solid rgba(255, 255, 255, 0.2); | |
border-right: 1.1em solid rgba(255, 255, 255, 0.2); | |
border-bottom: 1.1em solid rgba(255, 255, 255, 0.2); | |
border-left: 1.1em solid #ffffff; | |
-webkit-transform: translateZ(0); | |
-ms-transform: translateZ(0); | |
transform: translateZ(0); | |
-webkit-animation: load8 1.1s infinite linear; | |
animation: load8 1.1s infinite linear; | |
box-sizing: border-box; | |
} | |
.mmloader, .mmloader:after | |
{ | |
border-radius: 50%; | |
width: 10em; | |
height: 10em; | |
} | |
@-webkit-keyframes load8 | |
{ | |
0% | |
{ | |
-webkit-transform: rotate(0deg); | |
transform: rotate(0deg); | |
} | |
100% | |
{ | |
-webkit-transform: rotate(360deg); | |
transform: rotate(360deg); | |
} | |
} | |
@keyframes load8 | |
{ | |
0% | |
{ | |
-webkit-transform: rotate(0deg); | |
transform: rotate(0deg); | |
} | |
100% | |
{ | |
-webkit-transform: rotate(360deg); | |
transform: rotate(360deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment