<html lang="en">
<head>
<meta charset="UTF-8">
<title>Loading-facebook</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="box-loading">
<div class="box-thumbnail"></div>
<div class="box-line-sm"></div>
<div class="box-line-xs"></div>
<div class="box-line-df"></div>
<div class="box-line-lgx"></div>
<div class="box-line-lg"></div>
</div>
</body>
</html>
body {
background: #e9ebee;
}
[class*="box-"] {
height: 6px;
width: 400px;
background: #f6f7f9;
margin-bottom: 13px;
margin-right: 5px;
}
@mixin box-shadow($box_shadow) {
box-shadow: $box_shadow;
box-shadow: $box_shadow;
box-shadow: $box_shadow;
box-shadow: $box_shadow;
}
@mixin border-radius($border_radius) {
border-radius: $border_radius;
border-radius: $border_radius;
border-radius: $border_radius;
border-radius: $border_radius;
}
.box {
&-loading {
background: #fff;
height: 305px;
width: 500px;
padding: 10px;
display: block;
margin: 0 auto;
@include box-shadow(0 0 0 rgba(0,0,0,0.1));
@include border-radius(3px);
}
&-thumbnail {
height: 40px;
width: 40px;
float: left;
margin-right: 20px;
display: inline-block;
}
}
.box-line {
&-sm {
width: 120px;
margin-top: 10px;
margin-left: 50px;
}
&-xs {
width: 80px;
margin-left: 50px;
}
&-df {
margin-top: 30px;
width: 380px;
}
&-lg {
width: 200px;
}
&-lgx {
width: 450px;
}
}
[class*="box-line"],
.box-thumbnail {
animation: timeline;
animation-duration: 1s;
animation-timing-function: linear;
animation-iteration-count: infinite;
background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
background-size: 800px auto;
background-position: 100px 0;
}
@keyframes timeline {
0% {
background-position: -350px 0;
}
100% {
background-position: 400px 0; }
}
View Compiled
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.