Fullscreen background slideshow

Size
2,444 Kb
Views
36,432

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 Previews

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); })();
});
Fullscreen background slideshow - Script Codes
Fullscreen background slideshow - Script Codes
Home Page Home
Developer Antonija Simic
Username tonkec
Uploaded September 28, 2022
Rating 3
Size 2,444 Kb
Views 36,432
Do you need developer help for Fullscreen background slideshow?

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!

Antonija Simic (tonkec) Script Codes
Create amazing web content 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!