CSS Slider

Developer
Size
1,910 Kb
Views
30,360

How do I make an css slider?

Just a little slider. The only weird thing is that you have to duplicate the first image and make it the last image as well.. What is a css slider? How do you make a css slider? This script and codes were developed by Billy Crist on 04 October 2022, Tuesday.

CSS Slider Previews

CSS Slider - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Slider</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="slider-wrap"> <div class="slider"> <div class="slide"> <img src="https://41.media.tumblr.com/dd8b92562e9c2478b306a78d31bc7f3b/tumblr_nox58hMPro1smipnlo1_1280.jpg" /> </div> <div class="slide"> <img src="https://41.media.tumblr.com/5f1faadc39daaaf7e99d161f28fe260b/tumblr_n5y43dNgq61sa8qlko1_1280.jpg" /> </div> <div class="slide"> <img src="https://41.media.tumblr.com/13d4502083deff05ced351661ad2f9c7/tumblr_njglfsx2ur1qhzitko1_1280.jpg" /> </div> <div class="slide"> <img src="https://40.media.tumblr.com/5e3e7efb251948ca07bec0c0e838371c/tumblr_ncb3prZ29n1tcmhipo1_1280.jpg"/> </div> <div class="slide"> <img src="https://41.media.tumblr.com/dd8b92562e9c2478b306a78d31bc7f3b/tumblr_nox58hMPro1smipnlo1_1280.jpg" /> </div> </div>
</div>
</body>
</html>

CSS Slider - Script Codes CSS Codes

body { margin: 0;
}
.slider-wrap { position: relative; width: 90%; max-width: 1200px; margin: 5% auto; overflow: hidden;
}
.slider { position: relative; width: 500%; -webkit-animation: h_slide infinite ease-in-out 20s; animation: h_slide infinite ease-in-out 20s;
}
.slide { width: 20%; height: 600px; float: left; overflow: hidden;
}
img { position: relative; max-width: 100%; top: 50%; -webkit-transform: translateY(-50%); transform: translateY(-50%);
}
@-webkit-keyframes h_slide { 0% { left: 0%; } 20% { left: 0%; } 25% { left: -100%; } 45% { left: -100%; } 50% { left: -200%; } 70% {	left: -200%; } 75% { left: -300%; } 95% { left: -300%; } 100% { left: -400%; }
}
@keyframes h_slide { 0% { left: 0%; } 20% { left: 0%; } 25% { left: -100%; } 45% { left: -100%; } 50% { left: -200%; } 70% {	left: -200%; } 75% { left: -300%; } 95% { left: -300%; } 100% { left: -400%; }
}
CSS Slider - Script Codes
CSS Slider - Script Codes
Home Page Home
Developer Billy Crist
Username billyysea
Uploaded October 04, 2022
Rating 3
Size 1,910 Kb
Views 30,360
Do you need developer help for CSS Slider?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Billy Crist (billyysea) Script Codes
Create amazing love letters with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!