Google Loader

by Marc Malignan

HTML

<div class="loader">Stay calm while Google fetches your data...</div>

<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300' rel='stylesheet' type='text/css'>

CSS

@-webkit-keyframes loading {
    from { background-position: 0 0; }
    to { background-position: 100% 0; }
}

body {
    margin: 0;
    background: #333;
}

h1 {
    text-align: center;
}
.loader {
    position: relative;
    margin: 80px auto 0;
    width: 300px;
    padding: 40px;
    background: linear-gradient(to top, #3a3a3a, #444);
    text-align: center;
    font-size: 20px;
    font-weight: 100;
    color: rgba(255,255,255,.9);
    font-family: 'Roboto', sans-serif;
    border-radius: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,.4);
    box-shadow: 0 10px 40px rgba(0,0,0,.4);
    box-sizing: border-box;
    overflow: hidden;
}
.loader:after {
    content: '';
    position: absolute;
    top:0; left:0;
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, #D50F25 12.5%, #3369E8 12.5%, #3369E8 25%, #009925 25%, #009925 37.5%, #EEB211 37.5%, #EEB211 50%, #D50F25 50%, #D50F25 62.5%, #3369E8 62.5%, #3369E8 75%, #009925 75%, #009925 87.5%, #EEB211 87.5%) repeat-x;
    background-position: 0% 0;
    background-size: 200% 100%;
    -webkit-animation: loading 1s linear infinite;
}