본문 바로가기
Practice/Examples

Images Slide(HTML + CSS)

by Dev_Mook 2020. 3. 19.
출처 : Youtube > DarkCode 채널
.content-area{ margin: 0; padding: 0; background: #34495e; height: 680px; } .slidershow{ width: 700px; height: 400px; overflow: hidden; } .middle{ position: absolute; top: 31%; left: 41%; transform: translate(-50%, -50%); } .navigation{ position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; } .bar{ width: 50px; height: 10px; border: 2px solid #fff; margin: 6px; cursor: pointer; transition: 0.4s; } .bar:hover{ background: #fff; } input[name="r"]{ position: absolute; visibility: hidden; } .slides{ width: 500%; height: 100%; display: flex; } .slide{ width: 20%; transition: 0.6s; } .slide figure{ display: block !important; } .slide img{ width: 100%; height: 100%; } #r1:checked ~ .s1{ margin-left: 0; } #r2:checked ~ .s1{ margin-left: -20%; } #r3:checked ~ .s1{ margin-left: -40%; } #r4:checked ~ .s1{ margin-left: -60%; } #source{ color: gray; font-size: 13px; margin-top: 50px; }

'Practice > Examples' 카테고리의 다른 글

Wavy Text Animation  (0) 2020.03.22
Login Form(HTML+CSS)  (0) 2020.03.18
Calculator(CSS+Script)  (0) 2020.03.17
Clock(CSS+Script)  (0) 2020.03.15