-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
97 lines (88 loc) · 1.73 KB
/
styles.css
File metadata and controls
97 lines (88 loc) · 1.73 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
html, body {
background-color: #101010;
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
.switch {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
height: 50px;
position: relative;
cursor: pointer;
border-radius: 25px;
overflow: hidden;
background-color: black;
transition: background-color 0.3s ease;
z-index: 1;
}
.thumbsup {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: white;
transition: transform 0.3s ease;
font-size: 20px;
color: black;
user-select: none;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
left: 5px;
transition: left 0.3s ease;
}
.thumbeduped .thumbsup {
left: 55px;
animation-name: colorChange;
animation-duration: 0.5s;
animation-fill-mode: forwards;
}
.thumbsup.thumbeduped {
background-color: #e06c75;
}
@keyframes colorChange {
0% { color: black; }
100% { color: blue; }
}
.thumbsup-background {
user-select: none;
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
pointer-events: none;
z-index: 0;
opacity: 0;
transition: opacity 0.5s ease;
}
.thumbsup-background.show {
opacity: 1;
}
.thumbsup-emoji {
position: absolute;
font-size: 24px;
opacity: 0.6;
animation-name: emojiMove;
animation-duration: 4s;
animation-iteration-count: infinite;
}
@keyframes emojiMove {
0% {
transform: translateY(0) rotate(0);
}
50% {
transform: translateY(-20px) rotate(30deg);
}
70% {
transform: translateY(20px) rotate(-30deg);
}
100% {
transform: translateY(0) rotate(0);
}
}