forked from Gauravkumar03/myntra-website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
common.css
47 lines (47 loc) · 784 Bytes
/
common.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
.radio-input{
display:none;
}
.radio{
display:block;
width:25px;
height:25px;
cursor: pointer;
border-radius: 50%;
border:3px solid #fff;
position:relative;
display: flex;
justify-content: center;
align-items: center;
}
.radio::before,
.radio::after {
content: "";
position: absolute;
border-radius: 50%;
transform:scale(0);
display: block;
transition: all 0.1s;
}
.radio::before{
width:20px;
height:20px;
background: #fff;
}
.radio::after{
width:50px;
height:50px;
background: #f7faff4d;
}
.radio-input:checked +
.radio::after {
animation: ripple 0.2s;
}
.radio-input:checked +
.radio::before {
transform: scale(1);
}
@keyframes ripple {
to {
transform: scale(1);
}
}