CSS Slider
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 - 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%; }
}
Developer | Billy Crist |
Username | billyysea |
Uploaded | October 04, 2022 |
Rating | 3 |
Size | 1,910 Kb |
Views | 30,360 |
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!
Name | Size |
A Little Menu Bar | 3,899 Kb |
A Bouncy Menu Toggle | 4,563 Kb |
SuprLiTE CSS Arrows | 3,691 Kb |
Random Swim Slider | 2,345 Kb |
Interactive Business Card - OG | 3,334 Kb |
Mobile Twitter Log-in Design | 3,177 Kb |
A Perfect Minimal iPhone Template | 2,322 Kb |
Full Page Vertical Hover Sliders | 2,418 Kb |
A Music Player | 6,174 Kb |
Hotel Booking ..in progress | 4,458 Kb |
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!
Name | Username | Size |
Intake Form Page 2 | Ijantje | 4,983 Kb |
A Pen by Jim Savage | Madebyjam | 2,418 Kb |
A Pen by Eka Risyana | Risyana | 3,705 Kb |
Two joint circles - One element | Berdejitendra | 1,704 Kb |
Sass Radar | Jlong | 6,887 Kb |
Navier Stoke Fluid Simulation | Esimov | 8,584 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
Sticky div | Kaslab | 2,225 Kb |
Swiftype Lower Third | Zumwalt | 4,796 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!