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 |
Simple text hover effect | 2,203 Kb |
Pure CSS hamburger icons transition | 2,243 Kb |
Pure CSS animated hamburger icon | 1,928 Kb |
Material design navigation menu | 3,012 Kb |
3D cube flip | 2,794 Kb |
A Pen by Antonija Simic | 1,664 Kb |
Fullscreen background slideshow | 2,444 Kb |
Pure css navigation revealed on hover | 2,142 Kb |
Static website for free workshop | 3,412 Kb |
CSS refrigerator | 5,764 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 |
Pericles mi loro... | Judag | 4,125 Kb |
Flex Table | Simeonoff | 4,059 Kb |
DFF Website | Hawcubite | 10,123 Kb |
CSS3 Diamond | Rendro | 1,960 Kb |
Responsive Section hover effect to show content | Berdejitendra | 2,540 Kb |
Reviews and Ratings Star | Zbnmstry | 1,591 Kb |
Fun animations with CSS3 | Minimalmonkey | 2,360 Kb |
A Pen by Alex Bergin | Abergin | 3,347 Kb |
Cars going | Netoguimaraes | 1,699 Kb |
A Pen by Alexandru Pora | Axpro | 1,615 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!