-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
133 lines (130 loc) · 1.87 KB
/
styles.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
html,
body {
height: 100%;
}
body {
font-family: 'Montserrat', sans-serif;
color: #fff;
margin: 0;
background: url(bg.jpg);
background-size: 100%;
background-position: center;
overflow: hidden;
}
div {
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
background: rgba(0, 0, 0, 0.3);
}
h1 {
font-size: 4em;
}
p {
font-size: 1.2em;
}
img {
position: absolute;
width: 100%;
top: -30%;
opacity: 0;
}
/* ------ ANIMATIONS ------ */
div {
animation-name: background-show;
animation-duration: 2.5s;
}
body {
animation-name: grow;
animation-duration: 1s;
animation-timing-function: ease-out;
}
h1 {
animation: show 3s, translate 3s, translate2 3s 3s;
/*animation-timing-function: ease-out;
animation-delay: 0;
animation-direction: alternate;
animation-iteration-count: infinite;
animation-fill-mode: none;
animation-play-state: running;*/
}
.p1 {
animation: p1 6s;
}
.p2 {
animation: p2 8s;
}
img {
animation: showImage 1.5s 9.2s;
}
@keyframes show {
0% {
opacity: 0;
color: #aaa;
}
100% {
opacity: 1;
color: #fff;
}
}
@keyframes background-show {
0% {
background: rgba(0, 0, 0, 0);
}
100% {
}
}
@keyframes showImage {
0% {
opacity: 1;
}
100% {
opacity: 1;
}
}
@keyframes translate {
0% {
transform: translateY(140px);
}
100% {
transform: translateY(70px);
}
}
@keyframes translate2 {
0% {
transform: translateY(70px);
}
100% {
transform: translateY(0px);
}
}
@keyframes grow {
0% {
background-size: 120%;
}
100% {
background-size: 100%;
}
}
@keyframes p1 {
0%, 60% {
transform: translateX(500px);
opacity: 0;
}
80% {
opacity: 1;
}
}
@keyframes p2 {
0%, 70% {
opacity: 0;
transform: translateX(-500px);
}
80% {
opacity: 1;
}
}