CSS3 Carousel

Size
3,346 Kb
Views
4,048

How do I make an css3 carousel?

CSS3 Carousel with no javascript needed, simple fade, no user interaction. Just scrolls through three images. Uses nth child and css3 animations.. What is a css3 carousel? How do you make a css3 carousel? This script and codes were developed by Charlie Walter on 11 January 2023, Wednesday.

CSS3 Carousel Previews

CSS3 Carousel - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Carousel</title> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>CSS3 Carousel</h1>
<!-- Actual control -->
<a class="carousel" href="https://facebook.com/thecrosstowntrio"> <ul> <li> <img src="https://thecrosstowntrio.co.uk/wp-content/uploads/2014/05/homepage_resized-e1399413188847.jpg" /> </li> <li> <img src="https://thecrosstowntrio.co.uk/wp-content/uploads/2013/12/Ctown-Maltings-32-e1389543843133.jpg" /> </li> <li> <img src="https://thecrosstowntrio.co.uk/wp-content/uploads/2013/02/382544_10151798907322525_1794438694_n.jpg" /> </li> </ul>
</a>
<ul> <li> <i class="fa fa-ban"></i><span>No JavaScript Required</span> </li> <li> <i class="fa fa-pencil"></i><span>CSS Control</span> </li>
<ul>
</body>
</html>

CSS3 Carousel - Script Codes CSS Codes

body { background: #111; color: white;
}
* { font-weight: Lighter; font-family: Open Sans, Helvetica, Arial;
}
li { list-style: none; font-size: 1.5em;
}
i { margin-right: 1em;
}
small { color: yellow;
}
h1 { margin-left: 1em;
}
.carousel { width: 600px; height: 250px; overflow: hidden; position: relative; display: block;
}
.carousel:hover { opacity: .75;
}
.carousel img { width: 100%; height: auto;
}
.carousel li { list-style: none; position: absolute; top: 0;
}
.carousel li:nth-child(1) { -webkit-animation: first 15s linear 1s infinite normal; animation: first 15s linear 1s infinite normal; z-index: 2;
}
.carousel li:nth-child(2) { -webkit-animation: second 10s linear 1s infinite normal; animation: second 15s linear 1s infinite normal; z-index: 1;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes first { 0% { opacity: 1; } 32% { opacity: 1; } 33% { opacity: 0; } 66% { opacity: 0; } 99% { opacity: 0; } 100% { opacity: 1; }
}
/* Standard syntax */
@keyframes first { 0% { opacity: 1; } 32% { opacity: 1; } 33% { opacity: 0; } 66% { opacity: 0; } 99% { opacity: 0; } 100% { opacity: 1; }
}
/* Chrome, Safari, Opera */
@-webkit-keyframes second { 0% { opacity: 0; } 31% { opacity: 0; } 32% { opacity: 1; } 65% { opacity: 1; } 66% { opacity: 0; } 99% { opacity: 0; } 100% { opacity: 0; }
}
/* Standard syntax */
@keyframes second { 0% { opacity: 0; } 31% { opacity: 0; } 32% { opacity: 1; } 65% { opacity: 1; } 66% { opacity: 0; } 99% { opacity: 0; } 100% { opacity: 0; }
}
/* Irrelevent styling */
@font-face { font-family: 'Open Sans Light'; src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v8/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}
CSS3 Carousel - Script Codes
CSS3 Carousel - Script Codes
Home Page Home
Developer Charlie Walter
Username cjonasw
Uploaded January 11, 2023
Rating 3
Size 3,346 Kb
Views 4,048
Do you need developer help for CSS3 Carousel?

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!

Charlie Walter (cjonasw) Script Codes
Create amazing captions 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!