-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsplash.css
89 lines (79 loc) · 1.52 KB
/
splash.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
.splash {
position: relative; /* establish nearest positioned ancestor for
absolute positioning */
}
.splash h1 > .splash-word {
//flex-flow: row nowrap;
display: flex;
flex-direction: row;
justify-content: flex-end;
//justify-content: center;
//border: 3px solid red;
padding-left: 1rem;
padding-right: 1rem;
//min-width: 50%;
//max-width: 50%;
}
.splash h1 {
overflow: hidden;
display: flex;
flex-flow: row wrap;
//box-align: center;
align-items: center;
align-content: center;
//box-pack: center;
//justify-content: center;
padding: 0;
margin: 0;
position: absolute;
justify-content: center;
//text-align: center;
font-size: 4em;
font-weight: 700;
text-transform: uppercase;
text-shadow: 1px 1px 5px black;
//word-spacing: 2rem;
color: #eee;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.splash-left {
animation-fill-mode: both;
animation-name: splash-left;
}
@keyframes splash-left {
from {
opacity: 0;
color: #000;
transform: translate3d(0%, -500%, 0);
}
to {
opacity: 0.8;
color: #eee;
transform: translate(0%, 0%);
}
}
.splash-right {
animation-fill-mode: both;
animation-name: splash-right;
}
@keyframes splash-right {
from {
opacity: 0;
color: #000;
transform: translate3d(0%, 500%, 0);
}
to {
opacity: 0.8;
color: #eee;
transform: translate(0%, 0%);
}
}
.splash img {
position: relative;
height: 100%;
width: 100%;
object-fit: cover;
}