Spaces:
Runtime error
Runtime error
Create background.css
Browse files- background.css +66 -0
background.css
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Cool infinite background scrolling animation.
|
2 |
+
* Twitter: @kootoopas
|
3 |
+
*/
|
4 |
+
|
5 |
+
/* Exo thin font from Google. */
|
6 |
+
@import url(https://fonts.googleapis.com/css?family=Exo:100);
|
7 |
+
|
8 |
+
/* Background data (Original source: https://subtlepatterns.com/grid-me/) */
|
9 |
+
$bg-url: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABnSURBVHja7M5RDYAwDEXRDgmvEocnlrQS2SwUFST9uEfBGWs9c97nbGtDcquqiKhOImLs/UpuzVzWEi1atGjRokWLFi1atGjRokWLFi1atGjRokWLFi1af7Ukz8xWp8z8AAAA//8DAJ4LoEAAlL1nAAAAAElFTkSuQmCC";
|
10 |
+
$bg-width: 50px;
|
11 |
+
$bg-height: 50px;
|
12 |
+
|
13 |
+
/* Animations */
|
14 |
+
@-webkit-keyframes bg-scrolling-reverse {
|
15 |
+
100% { background-position: $bg-width $bg-height; }
|
16 |
+
}
|
17 |
+
@-moz-keyframes bg-scrolling-reverse {
|
18 |
+
100% { background-position: $bg-width $bg-height; }
|
19 |
+
}
|
20 |
+
@-o-keyframes bg-scrolling-reverse {
|
21 |
+
100% { background-position: $bg-width $bg-height; }
|
22 |
+
}
|
23 |
+
@keyframes bg-scrolling-reverse {
|
24 |
+
100% { background-position: $bg-width $bg-height; }
|
25 |
+
}
|
26 |
+
|
27 |
+
@-webkit-keyframes bg-scrolling {
|
28 |
+
0% { background-position: $bg-width $bg-height; }
|
29 |
+
}
|
30 |
+
@-moz-keyframes bg-scrolling {
|
31 |
+
0% { background-position: $bg-width $bg-height; }
|
32 |
+
}
|
33 |
+
@-o-keyframes bg-scrolling {
|
34 |
+
0% { background-position: $bg-width $bg-height; }
|
35 |
+
}
|
36 |
+
@keyframes bg-scrolling {
|
37 |
+
0% { background-position: $bg-width $bg-height; }
|
38 |
+
}
|
39 |
+
|
40 |
+
/* Main styles */
|
41 |
+
body {
|
42 |
+
margin-top: 13.5rem;
|
43 |
+
|
44 |
+
color: #999;
|
45 |
+
font: 400 16px/1.5 exo, ubuntu, "segoe ui", helvetica, arial, sans-serif;
|
46 |
+
text-align: center;
|
47 |
+
/* img size is 50x50 */
|
48 |
+
background: url($bg-url) repeat 0 0;
|
49 |
+
|
50 |
+
-webkit-animation: bg-scrolling-reverse .92s infinite; /* Safari 4+ */
|
51 |
+
-moz-animation: bg-scrolling-reverse .92s infinite; /* Fx 5+ */
|
52 |
+
-o-animation: bg-scrolling-reverse .92s infinite; /* Opera 12+ */
|
53 |
+
animation: bg-scrolling-reverse .92s infinite; /* IE 10+ */
|
54 |
+
-webkit-animation-timing-function: linear;
|
55 |
+
-moz-animation-timing-function: linear;
|
56 |
+
-o-animation-timing-function: linear;
|
57 |
+
animation-timing-function: linear;
|
58 |
+
|
59 |
+
&::before {
|
60 |
+
content: "INFINITY";
|
61 |
+
|
62 |
+
font-size: 8rem;
|
63 |
+
font-weight: 100;
|
64 |
+
font-style: normal;
|
65 |
+
}
|
66 |
+
}
|