forked from uiverse-io/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgharsh11032000_curvy-vampirebat-60.html
88 lines (76 loc) · 1.97 KB
/
gharsh11032000_curvy-vampirebat-60.html
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
<div class="radio-buttons-container">
<div class="radio-button">
<input name="radio-group" id="radio2" class="radio-button__input" type="radio">
<label for="radio2" class="radio-button__label">
<span class="radio-button__custom"></span>
Next
</label>
</div>
<div class="radio-button">
<input name="radio-group" id="radio1" class="radio-button__input" type="radio">
<label for="radio1" class="radio-button__label">
<span class="radio-button__custom"></span>
Svelte
</label>
</div>
<div class="radio-button">
<input name="radio-group" id="radio3" class="radio-button__input" type="radio">
<label for="radio3" class="radio-button__label">
<span class="radio-button__custom"></span>
Remix
</label>
</div>
</div>
<style>
/* From Uiverse.io by gharsh11032000 - Tags: radio, radio-buttons, hover effect, click effect */
.radio-buttons-container {
display: flex;
align-items: center;
gap: 24px;
}
.radio-button {
display: inline-block;
position: relative;
cursor: pointer;
}
.radio-button__input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.radio-button__label {
display: inline-block;
padding-left: 30px;
margin-bottom: 10px;
position: relative;
font-size: 16px;
color: #fff;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}
.radio-button__custom {
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid #555;
transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}
.radio-button__input:checked + .radio-button__label .radio-button__custom {
transform: translateY(-50%) scale(0.9);
border: 5px solid #4c8bf5;
color: #4c8bf5;
}
.radio-button__input:checked + .radio-button__label {
color: #4c8bf5;
}
.radio-button__label:hover .radio-button__custom {
transform: translateY(-50%) scale(1.2);
border-color: #4c8bf5;
box-shadow: 0 0 10px #4c8bf580;
}
</style>