Fullscreen background slideshow
How do I make an fullscreen background slideshow?
So simple it hurts.... What is a fullscreen background slideshow? How do you make a fullscreen background slideshow? This script and codes were developed by Antonija Simic on 28 September 2022, Wednesday.
Fullscreen background slideshow - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fullscreen background slideshow</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="bg-wrapper"> <div class="bg-img active"></div> <div class="bg-img"></div> <div class="bg-img"></div> <div class="bg-img"></div>
</div>
<a href="https://codepen.io/tonkec" class="ua" target="_blank"> <i class="fa fa-user"></i>
</a> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Fullscreen background slideshow - Script Codes CSS Codes
/* IMGS ARE NOT MINE */
html,
body { width: 100%; height: 100%; padding: 0; margin: 0;
}
.bg-img { position: fixed; top: 0; bottom: 0; left: 0; right: 0; -webkit-background-size: cover; -o-background-size: cover; background-size: cover; background-position: center center; background-repeat: no-repeat; opacity: 0; -webkit-transition: all 4s ease-in-out; -moz-transition: all 4s ease-in-out; -ms-transition: all 4s ease-in-out; -o-transition: all 4s ease-in-out; transition: all 4s ease-in-out; -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1)
}
.bg-img:first-child { background-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .2)), url(http://p2cdn4static.sharpschool.com/UserFiles/Servers/Server_3200643/Image/ButterflyonYellowFlower.jpg);
}
.bg-img:nth-child(2) { background-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .2)), url(http://media02.hongkiat.com/ww-flower-wallpapers/roundflower.jpg);
}
.bg-img:nth-child(3) { background-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .2)), url(http://newflowerwallpaper.com/download/blue-flowers-images-and-wallpapers/blue-flowers-images-and-wallpapers-1.jpg);
}
.bg-img:nth-child(4) { background-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .2)), url(https://newevolutiondesigns.com/images/freebies/flowers-wallpaper-24.jpg);
}
.slide-active { opacity: 1; -webkit-transition: all 4s ease-in-out; -moz-transition: all 4s ease-in-out; -ms-transition: all 4s ease-in-out; -o-transition: all 4s ease-in-out; transition: all 4s ease-in-out; -webkit-transform: scale(1.2); -moz-transform: scale(1.2); -ms-transform: scale(1.2); -o-transform: scale(1.2); transform: scale(1.2);
}
.ua { position: absolute; right: 20px; bottom: 20px; color: #fff; font-size: 2em;
}
.fa { color: #fff; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -ms-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease;
}
.ua:hover .fa { color:#1ba2e7; -webkit-transform: scale(1.5); -moz-transform: scale(1.5); -ms-transform: scale(1.5); -o-transform: scale(1.5); transform: scale(1.5); -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -ms-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease;
}
Fullscreen background slideshow - Script Codes JS Codes
$(document).ready(function(){ var imgs = $(".bg-img"); i = -1; (function slideshow() { i = (i + 1) % imgs.length; $(imgs).not(imgs[i]).removeClass("slide-active") $(imgs[i]).addClass("slide-active") setTimeout(slideshow, 7000); })();
});
Developer | Antonija Simic |
Username | tonkec |
Uploaded | September 28, 2022 |
Rating | 3 |
Size | 2,444 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 |
Pure CSS animated hamburger icon | 1,928 Kb |
Static website for free workshop | 3,412 Kb |
CSS preloader | 1,832 Kb |
Material design navigation menu | 3,012 Kb |
3D cube flip | 2,794 Kb |
Flat designed responsive preloader | 2,621 Kb |
Pure css navigation revealed on hover | 2,142 Kb |
CSS refrigerator | 5,764 Kb |
Menu with CSS3 transition | 2,844 Kb |
Pure CSS bread-loaf carousel | 2,559 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 |
Clock | Martingrand | 3,520 Kb |
Brian The CSS Bee | Jonitrythall | 3,922 Kb |
Parallax.js | Zmeeey5 | 2,330 Kb |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Blog | Rottingroom | 1,430 Kb |
Heartbeat | Apetrov | 2,079 Kb |
Animated Vertical CSS3 Menu Black | MaCeLMp4 | 2,750 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
Bootstrap 3 Price Table | Honglio | 2,655 Kb |
Wikipedia Viewer | Odylic | 2,333 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!