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,432 |
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 |
Html demos with data uri | 4,086 Kb |
Responsive table with json data. | 4,802 Kb |
IndexedDB demo | 6,577 Kb |
Data uri converter | 4,979 Kb |
Welcome | 6,076 Kb |
SWEditor v0.2.0 | 7,467 Kb |
Another intro | 4,763 Kb |
Background video | 3,286 Kb |
Calendar with json events mobile concept | 4,022 Kb |
Another webSQL | 6,565 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 |
Pure CSS Tooltip | APinix | 2,815 Kb |
Twinner Spinner II | Katydecorah | 2,974 Kb |
Stylize Stories | Jvhti | 2,465 Kb |
Spiralator 9000 | AdmiralPotato | 4,671 Kb |
Tumblr API | Juanv911 | 2,436 Kb |
Website Concept | Sagoza | 3,104 Kb |
Falling Down the Rabbit Hole | Rachelnabors | 4,578 Kb |
Owl Carousel - jumpTo | OwlFonk | 2,553 Kb |
JavaScript Animation | Rcmeisty | 4,581 Kb |
Easing | GreenSock | 2,043 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!