Css3 slide
How do I make an css3 slide?
What is a css3 slide? How do you make a css3 slide? This script and codes were developed by Moncho Varela on 07 July 2022, Thursday.
Css3 slide - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Css3 slide</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { margin: 0; padding: 0; background: #34495E;
}
.main { position: relative; display: block; width: 90%; margin: 5% auto; padding: 0; border: 5px solid #2C3E50; overflow:hidden;
}
.main:after { content: ""; position: absolute; top:0; left:0; width: 50%; height: 0.5%; background: #1ABC9C; -webkit-animation: leftRight 20s infinite linear; animation: leftRight 20s infinite linear;
}
.main:before { content: ""; position: absolute; top: 0; right:0; width: 50%; height: 0.5%; background: #E74C3C; -webkit-animation: leftRight 20s infinite linear; animation: leftRight 20s infinite linear; z-index:9999;
}
.portfolio { position: relative; width: 100%; height: 200px; padding: 0; overflow: hidden; margin: 0;
}
.portfolio_items { position: absolute; left: 0; top: 0; width: 400%; -webkit-animation: slide 20s infinite ease; animation: slide 20s infinite linear;
}
.portfolio_item { position: relative; display: block; padding: 0; margin: 0; float: left; width: 25%;
}
.portfolio_item img { width: 100%; border: 0; outline: 0; display: block;
}
.portfolio_item figcaption { position: absolute; top: 10%; left: 0; width: 25%; height: 1.5em; line-height:1.5em; padding: 1%; text-align: center; border-radius: 0 5px 5px 0; background:black; background: rgba(0, 0, 0, 0.3); color:#fff; transition:all 1s ease;
}
/* fx */
@keyframes leftRight{ 0%{width:0%;} 30%{width:50%;} 32%{width:0%;} 63%{width:50%;} 64%{width:0%;} 97%{width:50%;} 98%{width:0%;}
}
@-webkit-keyframes leftRight{ 0%{width:0%;} 30%{width:50%;} 32%{width:0%;} 63%{width:50%;} 64%{width:0%;} 98%{width:50%;} 100%{width:0%;}
}
@-webkit-keyframes slide { 0% {left: 0%;opacity: 0;} 3% {left: 0%;opacity: 1;} 30% {left: 0%;opacity: 1;} 33% {left: 0%;opacity: 0;} 34% {left: -100%;opacity: 0;} 37% {left: -100%;opacity: 1;} 63% {left: -100%;opacity: 1;} 66% {left: -100%;opacity: 0;} 67% {left: -200%;opacity: 0} 70% {left: -200%;opacity: 1;} 96% {left: -200%;opacity: 1;} 99% {left: -200%;opacity: 0;} 100% {left: 0%;opacity: 0;}
}
@keyframes slide { 0% {left: 0%;opacity: 0;} 3% {left: 0%;opacity: 1;} 30% {left: 0%;opacity: 1;} 33% {left: 0%;opacity: 0;} 34% {left: -100%;opacity: 0;} 37% {left: -100%;opacity: 1;} 63% {left: -100%;opacity: 1;} 66% {left: -100%;opacity: 0;} 67% {left: -200%;opacity: 0} 70% {left: -200%;opacity: 1;} 96% {left: -200%;opacity: 1;} 99% {left: -200%;opacity: 0;} 100% {left: 0%;opacity: 0;}
}
/* media queries */
@media (min-width: 240px) { .portfolio_item figcaption {width:50%} .portfolio{height:100px;}}
@media (min-width: 320px) { .portfolio_item figcaption {width:35%} .portfolio{height:200px;}}
@media (min-width: 480px) { .portfolio_item figcaption {width:25%} .portfolio{height:250px;}}
@media (min-width: 760px) { .portfolio_item figcaption {width:20%} .portfolio{height:400px;}} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="main"> <div class="portfolio"> <section class="portfolio_items"> <figure class="portfolio_item"> <img src="https://unsplash.imgix.net/photo-1434139240289-56c519f77cb0?fit=crop&fm=jpg&h=700&q=75&w=1050" alt="" /> </figure> <figure class="portfolio_item"> <img src="https://unsplash.imgix.net/photo-1434077471918-4ea96e6e45d5?fit=crop&fm=jpg&h=800&q=75&w=1050" alt="" /> </figure> <figure class="portfolio_item"> <img src="https://ununsplash.imgix.net/photo-1433959352364-9314c5b6eb0b?fit=crop&fm=jpg&q=75&w=1050" alt="" /> <figcaption> End of Gallery. </figcaption> </figure> </section> </div>
</div>
</body>
</html>
Css3 slide - Script Codes CSS Codes
body { margin: 0; padding: 0; background: #34495E;
}
.main { position: relative; display: block; width: 90%; margin: 5% auto; padding: 0; border: 5px solid #2C3E50; overflow:hidden;
}
.main:after { content: ""; position: absolute; top:0; left:0; width: 50%; height: 0.5%; background: #1ABC9C; -webkit-animation: leftRight 20s infinite linear; animation: leftRight 20s infinite linear;
}
.main:before { content: ""; position: absolute; top: 0; right:0; width: 50%; height: 0.5%; background: #E74C3C; -webkit-animation: leftRight 20s infinite linear; animation: leftRight 20s infinite linear; z-index:9999;
}
.portfolio { position: relative; width: 100%; height: 200px; padding: 0; overflow: hidden; margin: 0;
}
.portfolio_items { position: absolute; left: 0; top: 0; width: 400%; -webkit-animation: slide 20s infinite ease; animation: slide 20s infinite linear;
}
.portfolio_item { position: relative; display: block; padding: 0; margin: 0; float: left; width: 25%;
}
.portfolio_item img { width: 100%; border: 0; outline: 0; display: block;
}
.portfolio_item figcaption { position: absolute; top: 10%; left: 0; width: 25%; height: 1.5em; line-height:1.5em; padding: 1%; text-align: center; border-radius: 0 5px 5px 0; background:black; background: rgba(0, 0, 0, 0.3); color:#fff; transition:all 1s ease;
}
/* fx */
@keyframes leftRight{ 0%{width:0%;} 30%{width:50%;} 32%{width:0%;} 63%{width:50%;} 64%{width:0%;} 97%{width:50%;} 98%{width:0%;}
}
@-webkit-keyframes leftRight{ 0%{width:0%;} 30%{width:50%;} 32%{width:0%;} 63%{width:50%;} 64%{width:0%;} 98%{width:50%;} 100%{width:0%;}
}
@-webkit-keyframes slide { 0% {left: 0%;opacity: 0;} 3% {left: 0%;opacity: 1;} 30% {left: 0%;opacity: 1;} 33% {left: 0%;opacity: 0;} 34% {left: -100%;opacity: 0;} 37% {left: -100%;opacity: 1;} 63% {left: -100%;opacity: 1;} 66% {left: -100%;opacity: 0;} 67% {left: -200%;opacity: 0} 70% {left: -200%;opacity: 1;} 96% {left: -200%;opacity: 1;} 99% {left: -200%;opacity: 0;} 100% {left: 0%;opacity: 0;}
}
@keyframes slide { 0% {left: 0%;opacity: 0;} 3% {left: 0%;opacity: 1;} 30% {left: 0%;opacity: 1;} 33% {left: 0%;opacity: 0;} 34% {left: -100%;opacity: 0;} 37% {left: -100%;opacity: 1;} 63% {left: -100%;opacity: 1;} 66% {left: -100%;opacity: 0;} 67% {left: -200%;opacity: 0} 70% {left: -200%;opacity: 1;} 96% {left: -200%;opacity: 1;} 99% {left: -200%;opacity: 0;} 100% {left: 0%;opacity: 0;}
}
/* media queries */
@media (min-width: 240px) { .portfolio_item figcaption {width:50%} .portfolio{height:100px;}}
@media (min-width: 320px) { .portfolio_item figcaption {width:35%} .portfolio{height:200px;}}
@media (min-width: 480px) { .portfolio_item figcaption {width:25%} .portfolio{height:250px;}}
@media (min-width: 760px) { .portfolio_item figcaption {width:20%} .portfolio{height:400px;}}

Developer | Moncho Varela |
Username | nakome |
Uploaded | July 07, 2022 |
Rating | 4.5 |
Size | 3,190 Kb |
Views | 36,414 |
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 |
Another webSQL | 6,565 Kb |
How to make spanish tortilla | 3,133 Kb |
Calendar with json events mobile concept | 4,022 Kb |
Another preloader, Airport panel. | 2,948 Kb |
One page theme | 6,183 Kb |
Welcome | 6,076 Kb |
Responsive table with json data. | 4,802 Kb |
Get json with data attributes | 3,609 Kb |
Simply Redirect to | 1,989 Kb |
Another intro | 4,763 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 |
Shopping List | Markmurray | 6,015 Kb |
Ionic - Wordpress REST API starter | Superpikar | 2,961 Kb |
Form Labels | Bartuc | 2,717 Kb |
Box Shadow Effects | Retrofuturistic | 2,143 Kb |
Mandelbrot Fractal | _Billy_Brown | 2,706 Kb |
Ripples in water | Nobitagit | 2,704 Kb |
Nav Test -- cats 1 | Payls | 4,735 Kb |
The Fantastic Mr Fox | MalZiiirA | 10,435 Kb |
Midterm dry run | Jds317 | 1,649 Kb |
Fluid Grid 12 | Alexoliverwd | 2,309 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!