-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
94 lines (83 loc) · 1.55 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
body {
margin: 0px;
padding: 0px;
background: #000000;
}
#paralax {
position: relative;
height: 400px;
top: 50%;
margin-top: -200px;
border-top: 1px solid #999;
border-bottom: 1px solid #999;
}
#logoOne,
#logoTwo,
#layerOne,
#layerTwo,
#layerThree,
#layerFour,
#layerFive {
position: absolute;
top: 0px;
left: 0px;
height: 400px;
width: 100%;
-webkit-animation-direction: normal;
-webkit-animation-timing-function: linear;
-webkit-play-state: running;
-webkit-animation-iteration-count: infinite;
}
#logoOne {
background: url(img/logo01.png) no-repeat center;
z-index: 6;
}
#logoTwo {
background: url(img/logo02.png) no-repeat center;
z-index: 5;
}
#layerOne {
background: bottom url(img/layer01.png);
z-index: 4;
-webkit-animation-duration: 1s;
-webkit-animation-name: scrollingRight;
}
#layerTwo {
background: center url(img/layer02.png);
z-index: 3;
-webkit-animation-duration: 2s;
-webkit-animation-name: scrollingLeft;
}
#layerThree {
background: url(img/layer03.png) left;
z-index: 2;
-webkit-animation-duration: 2s;
-webkit-animation-name: scrollingLeft;
}
#layerFour {
background: url(img/layer04.png) left;
z-index: 1;
-webkit-animation-duration: 5s;
-webkit-animation-name: scrollingLeft;
}
#layerFive {
background: url(img/layer05.png) left;
z-index: 0;
-webkit-animation-name: scrollingLeft;
}
@-webkit-keyframes scrollingLeft {
0% {
background-position: 0px;
}
100% {
background-position: -1000px;
}
}
@-webkit-keyframes scrollingRight {
0% {
background-position: 0px;
}
100% {
background-position: 1000px;
}
}