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
| <style>
*{box-sizing:border-box}
.slider_focus{
max-width: 600px;
margin: 2rem auto;
}
.slider_focus ul{
margin: 0;
/*reset ul*/
padding: 0;
list-style-type:none;
/*reset ul*/
display:flex;
position: relative;
justify-content: center;
aspect-ratio:3/2;gap:.5rem;
}
.slider_focus ul li{
align-self:flex-end;
display: flex;
align-items: center;
justify-content: center;
margin-bottom:.5rem;
height:4rem;
width: 4rem;
}
.slider_focus ul li button
{
all:unset;
padding:0;
border:0;
cursor: pointer;
}
::-moz-focus-inner {
border: 0;
padding-inline: 0px;
}
.slider_focus ul li button img{
border-radius: 10%;
border:2px solid white;
width:4rem;
height:4rem;
margin-top:180px;
height:4rem;object-fit: cover;
}
.slider_focus ul li span img{
display:block;
position:absolute;
top:0;
left:0;
height:100%;
width:100%;
transform:translateX(-100%);
z-index:0;
opacity:0;
will-change: transform,opacity;
transition:transform .6s,opacity .6s
}
.slider_focus ul:not(:focus-within) li:first-child span img,
.slider_focus ul li:focus-within span img{
transform:translateX(0%);
opacity:1;
cursor: pointer;
}
.slider_focus ul:not(:focus-within) li:first-child button img,
.slider_focus ul li:focus-within button img{outline:2px solid black;border-radius: 10%; opacity:.4}
.hight_vignet{
position:relative;
min-height:50px;
z-index:-1;
}
.haut_img{
position:relative;
height:1px;
width:100%;
z-index:-1;
}
</style> |
Partager