Skip to content

Instantly share code, notes, and snippets.

@motss
Last active July 20, 2017 18:31
Show Gist options
  • Save motss/fb4390a152db4b7914c2 to your computer and use it in GitHub Desktop.
Save motss/fb4390a152db4b7914c2 to your computer and use it in GitHub Desktop.
simple loading screen
<!-- Credits to http://codepen.io/mikeambrosi/pen/JdEMmY -->
<html>
<head>
<style>
/* Run on https://autoprefixer.github.io/ to compile CSS */
.loading {
position: absolute;
top: 50%;
left: 50%;
margin: -15px 0 0 -15px;
height: 30px;
width: 30px;
border: 2px solid #ddd;
border-left-color: #009688;
border-radius: 30px; /* border-radius: 50% */
-webkit-animation: animation-rotate 950ms cubic-bezier(.64,2,.56,.6) infinite;
animation: animation-rotate 950ms cubic-bezier(.64,2,.56,.6) infinite;
}
@-webkit-keyframes animation-rotate {
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes animation-rotate {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<div class="loading"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment