Skip to content

Instantly share code, notes, and snippets.

@gustaff-weldon
Created July 12, 2016 10:55
Show Gist options
  • Save gustaff-weldon/08af8bac9b6e0d8e014a86fbcd0e0552 to your computer and use it in GitHub Desktop.
Save gustaff-weldon/08af8bac9b6e0d8e014a86fbcd0e0552 to your computer and use it in GitHub Desktop.
Untitled
body {
font-family: Arial
}
.box {
padding: 20px;
color: white;
}
@keyframes background-position{
from{ background-position: 0 0;}
to { background-position: 50px 0 }
}
.animate-bg {
background-color: #20957f;
background-image: linear-gradient(135deg, rgba(255,255,255, 0.2) 25%, rgba(255,255,255, 0.5) 25%, rgba(255,255,255, 0.5) 50%, rgba(255,255,255, 0.2) 50%, rgba(255,255,255, 0.2) 75%, rgba(255,255,255, 0.5) 75%, rgba(255,255,255, 0.5));
background-size: 50px 50px;
animation: background-position 1s linear infinite;
background-position: 0 0;
}
<div class="box animate-bg" href="#background-position" title="background-position from 0 0 to 100% 100%">Please wait while downloading</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment