-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimgsl.css
88 lines (78 loc) · 1.59 KB
/
imgsl.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
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: rgba(255, 255, 0, 0.451);
}
.wrapper{
position: relative;
height:650px;
width:1400px;
}
.wrapper .img{
position: absolute;
height:100%;
width:100%;
}
.wrapper .img img{
height:100%;
width:100%;
object-fit: cover;
clip-path: circle(0% at 0% 100%);
transition: all 0.7s ;
}
#one:checked ~ .img-1 img{
clip-path: circle(150% at 0% 100%)
}
#two:checked ~ .img-1 img,
#two:checked ~ .img-2 img{
clip-path: circle(150% at 0% 100%)
}
#three:checked ~ .img-1 img,
#three:checked ~ .img-2 img,
#three:checked ~ .img-3 img{
clip-path: circle(150% at 0% 100%)
}
#four:checked ~ .img-1 img,
#four:checked ~ .img-2 img,
#four:checked ~ .img-3 img,
#four:checked ~ .img-4 img{
clip-path: circle(150% at 0% 100%)
}
.wrapper .sliders{
position:absolute;
bottom:20px;
left:50%;
transform: translateY(-50%);
z-index:999;
display: flex;
}
.wrapper .sliders label{
height: 20px;
width: 20px;
border: 2px solid black;
margin: 0 3px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
}
#one:checked ~ .sliders label.one,
#two:checked ~ .sliders label.two,
#three:checked ~ .sliders label.three,
#four:checked ~ .sliders label.four{
width: 35px;
border-radius: 14px;
background:rgb(0, 157, 255);
}
.sliders label:hover{
background:rgb(0, 157, 255);
}
.wrapper input[type="radio"]{
display:none;
}