forked from charliegerard/starwars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
87 lines (77 loc) · 1.23 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
@import url(http://fonts.googleapis.com/css?family=News+Cycle:400,700);
body{
background-color: black;
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
letter-spacing:.15em;
font: 700 1em "News Cycle", sans-serif;
}
#info{
position: absolute;
top: 10px;
width: 100%;
text-align: center;
color: white;
font-weight: 400;
font-size: 12px;
display: none;
}
#title{
color: rgb(75, 213, 238);
transform-origin: 50% 100%;
position: absolute;
margin: -1em 0 0 -7.65em;
font-size: 3em;
line-height: 1em;
font-weight: 200;
}
section{
top: 45%;
left: 50%;
position: absolute;
z-index: 1;
}
.content{
top: auto;
bottom: 0;
height: 50em;
width: 14.65em;
margin: 0 0 0 -7.65em;
font-size: 3em;
text-align: justify;
overflow: hidden;
color: yellow;
transform-origin: 50% 100%;
transform: perspective(300px) rotateX(25deg);
}
.content div{
position: absolute;
top: 100%;
}
.content div.animated{
animation: content 70s linear 0s;
}
.content div p{
line-height: 1.35em;
margin: 1.35em 0 1.85em 0;
color: yellow;
@include backface-visibility(hidden);
}
@keyframes content {
0% {
top: 97%;
opacity: 1;
}
95% {
opacity: 1;
}
100% {
top: 20%;
opacity: 0;
}
}
a{
color: white;
}