-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
86 lines (78 loc) · 1.59 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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.image-container {
background: url(thumb-1920-597965.jpg);
height: 100vh;
background-position: top;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
img {
position: absolute;
bottom: 20px;
right: 50px;
width: 100px;
cursor: pointer;
animation-name: bounce;
animation-duration: 1s;
animation-timing-function: ease-in;
animation-iteration-count: infinite;
}
@keyframes bounce {
0% {
transform: translateY(0);
animation-timing-function: ease-out;
}
50% {
transform: translateY(-20px);
animation-timing-function: ease-in;
}
100% {
transform: translateY(0);
animation-timing-function: ease-out;
}
}
.trailer-container {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #000;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
opacity: 1;
transition: opacity 0.7s;
}
.trailer-container video {
position: relative;
max-width: 900px;
outline: none;
}
.close-icon {
position: absolute;
top: 30px;
right: 30px;
color: #f26415;
font-size: 40px;
cursor: pointer;
font-family: sans-serif;
padding: 10px;
border-radius: 100%;
}
@media (max-width: 991px) {
.trailer-container video {
max-width: 90%;
}
}
/* JavaScript */
.active.trailer-container {
visibility: hidden;
opacity: 0;
}