-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss.css
More file actions
174 lines (148 loc) · 3.36 KB
/
css.css
File metadata and controls
174 lines (148 loc) · 3.36 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/* From Uiverse.io by Navarog21 */
* { padding: 0; margin: 0; box-sizing: border-box; }
button { font-family: inherit; }
/* Flexbox container for vertical alignment */
.button-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh; /* Full height for centering */
}
button {
position: relative;
width: 11em;
height: 4em;
outline: none;
transition: 0.1s;
background-color: transparent;
border: none;
font-size: 13px;
font-weight: bold;
color: #ddebf0;
margin: 10px; /* Adds spacing between buttons */
}
#clip {
--color: #2761c3;
position: absolute;
top: 0;
overflow: hidden;
width: 100%;
height: 100%;
border: 5px double var(--color);
box-shadow: inset 0px 0px 15px #195480;
-webkit-clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
.arrow {
position: absolute;
transition: 0.2s;
background-color: #2761c3;
top: 35%;
width: 11%;
height: 30%;
}
#leftArrow {
left: -13.5%;
-webkit-clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
#rightArrow {
-webkit-clip-path: polygon(100% 49%, 0 0, 0 100%);
left: 102%;
}
button:hover #rightArrow {
background-color: #27c39f;
left: -15%;
animation: 0.6s ease-in-out both infinite alternate rightArrow8;
}
button:hover #leftArrow {
background-color: #27c39f;
left: 103%;
animation: 0.6s ease-in-out both infinite alternate leftArrow8;
}
.corner {
position: absolute;
width: 4em;
height: 4em;
background-color: #2761c3;
box-shadow: inset 1px 1px 8px #2781c3;
transform: scale(1) rotate(45deg);
transition: 0.2s;
}
#rightTop {
top: -1.98em;
left: 91%;
}
#leftTop {
top: -1.96em;
left: -3.0em;
}
#leftBottom {
top: 2.10em;
left: -2.15em;
}
#rightBottom {
top: 45%;
left: 88%;
}
button:hover #leftTop {
animation: 0.1s ease-in-out 0.05s both changeColor8,
0.2s linear 0.4s both lightEffect8;
}
button:hover #rightTop {
animation: 0.1s ease-in-out 0.15s both changeColor8,
0.2s linear 0.4s both lightEffect8;
}
button:hover #rightBottom {
animation: 0.1s ease-in-out 0.25s both changeColor8,
0.2s linear 0.4s both lightEffect8;
}
button:hover #leftBottom {
animation: 0.1s ease-in-out 0.35s both changeColor8,
0.2s linear 0.4s both lightEffect8;
}
button:hover .corner {
transform: scale(1.25) rotate(45deg);
}
button:hover #clip {
animation: 0.2s ease-in-out 0.55s both greenLight8;
--color: #27c39f;
}
@keyframes changeColor8 {
from {
background-color: #2781c3;
}
to {
background-color: #27c39f;
}
}
@keyframes lightEffect8 {
from {
box-shadow: 1px 1px 5px #27c39f;
}
to {
box-shadow: 0 0 2px #27c39f;
}
}
@keyframes greenLight8 {
from {
}
to {
box-shadow: inset 0px 0px 32px #27c39f;
}
}
@keyframes leftArrow8 {
from {
transform: translate(0px);
}
to {
transform: translateX(10px);
}
}
@keyframes rightArrow8 {
from {
transform: translate(0px);
}
to {
transform: translateX(-10px);
}
}