-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoverlay_video.css
More file actions
157 lines (135 loc) · 2.88 KB
/
overlay_video.css
File metadata and controls
157 lines (135 loc) · 2.88 KB
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
.ss-default-container {
position: absolute;
top: 0;
right: 0;
font-size: 20px;
background-color: rgba(221, 221, 221, 0.3);
z-index: 2147483647;
min-width: 35px;
min-height: 35px;
width: 2%;
border-radius: 50%;
margin: 25px;
display: flex;
justify-content: center;
align-items: center;
}
.ss-default-container::after {
content: "";
display: block;
padding-bottom: 100%;
}
.ss-render-container {
position: absolute;
top: 0;
left: 0;
/* If the render canvas is smaller than the styled container;
position the canvas in the center of the container */
display: flex;
justify-content: center;
align-items: center;
}
.ss-render-canvas {
max-width: inherit;
max-height: inherit;
}
.ss-toggle-gradient-background {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
border-radius: 50%;
background: #61005c; /* fallback for old browsers */
background: -webkit-linear-gradient(40deg, #61005c, #0eafbe);
background: linear-gradient(40deg, #61005c, #0eafbe);
background-size: 400% 400%;
animation: gradient 14s ease infinite;
/* Initialize with a scale of 0 until the script gives the correct animation class */
transform: scale(0);
}
.ss-toggle-gradient-background-animate-in {
animation: scale-in 0.25s ease-in forwards;
animation-fill-mode: forwards;
}
.ss-toggle-gradient-background-animate-out {
animation: scale-out 0.4s ease-out forwards;
}
@keyframes scale-in {
0% {
transform: scale(0);
}
70% {
transform: scale(1.5);
}
100% {
transform: scale(1.3);
}
}
@keyframes scale-out {
0% {
transform: scale(1.3);
}
30% {
transform: scale(0.6);
}
60% {
transform: scale(1.0);
}
100% {
transform: scale(0);
}
}
.ss-toggle-container {
position: absolute;
width: 100%;
height: 100%;
}
.ss-toggle {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
.ss-toggle > input {
/* Hide native checkbox design */
opacity: 0;
width: 0;
height: 0;
position: absolute;
-webkit-transition: all 300ms 0ms ease-in-out;
transition: all 300ms 0ms ease-in-out;
}
.ss-toggle img {
display: block;
width: 100%
}
.ss-inner-youtube-container {
width: 60%;
position: relative;
}
.ss-inner-youtube-container::after {
content: "";
display: block;
padding-bottom: 100%;
}
.ss-big-inner-youtube-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.ss-toggle-label {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: pointer;
}