@@ -18,6 +18,28 @@ body.cp header {
z-index: 3;
}
+@keyframes loading-movement{
+ 0% {
+ background-position: 0 0;
+ }
+ to {
+ background-position: 50px 50px;
+}
+
+body.cp.loading header:before {
+ animation: loading-movement 2s linear infinite;
+ background-image: linear-gradient(-45deg, hsla(0, 0%, 100%, .05) 25%, transparent 0, transparent 50%, hsla(0, 0%, 100%, .05) 0, hsla(0, 0%, 100%, .05) 75%, transparent 0, transparent);
+ background-size: 50px 50px;
+ bottom: 0;
+ content: "";
+ left: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 1;
body.cp .wrap {
align-items: stretch;
display: block;
@@ -8,7 +8,7 @@
<link rel="stylesheet" href="./../../reset.css">
<link rel="stylesheet" href="./base.css">
</head>
- <body class="cp">
+ <body class="cp loading">
<header>
Text
</header>