CSS Slide Show

Developer
Size
2,856 Kb
Views
24,288

How do I make an css slide show?

Adapted from http://snook.ca/archives/html_and_css/simplest-css-slideshow. What is a css slide show? How do you make a css slide show? This script and codes were developed by JR Jenkins on 04 October 2022, Tuesday.

CSS Slide Show Previews

CSS Slide Show - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Slide Show</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="fadein"> <img src="http://farm3.static.flickr.com/2610/4148988872_990b6da667.jpg"> <img src="http://farm3.static.flickr.com/2597/4121218611_040cd7b3f2.jpg"> <img src="http://farm3.static.flickr.com/2531/4121218751_ac8bf49d5d.jpg">
</div>
</body>
</html>

CSS Slide Show - Script Codes CSS Codes

body { font-family: Arial, Helvetica, sans-serif; font-size: 12px;
}
@keyframes fade { 0% { opacity: 0; } 11.11% { opacity: 1; } 33.33% { opacity: 1; } 44.44% { opacity: 0; } 100% { opacity: 0; }
}
.fadein { position: relative; height: 332px; width: 500px; outline: 1px solid blue;
}
.fadein img { position: absolute; left: 0; right: 0; opacity: 0; animation-name: fade; animation-duration: 9s; animation-iteration-count: infinite;
}
.fadein img:nth-child(1) { animation-delay: 0s;
}
.fadein img:nth-child(2) { animation-delay: 3s;
}
.fadein img:nth-child(3) { animation-delay: 6s;
}
.fadein2 img { position: absolute; left: 0; right: 0; opacity: 0; animation-name: fade; animation-duration: 12s; animation-iteration-count: infinite;
}
@keyframes fader { 0% { opacity: 0; } 8.33333% { opacity: 1; } 25% { opacity: 1; } 33.33333% { opacity: 0; } 100% { opacity: 0; }
}
.fadein2 img:nth-child(1) { animation-delay: 0s;
}
.fadein2 img:nth-child(2) { animation-delay: 3s;
}
.fadein2 img:nth-child(3) { animation-delay: 6s;
}
.fadein2 img:nth-child(4) { animation-delay: 9s;
}
CSS Slide Show - Script Codes
CSS Slide Show - Script Codes
Home Page Home
Developer JR Jenkins
Username jrjenk
Uploaded October 04, 2022
Rating 3
Size 2,856 Kb
Views 24,288
Do you need developer help for CSS Slide Show?

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!

JR Jenkins (jrjenk) Script Codes
Create amazing Facebook ads 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!