Unconventional slideshow
How do I make an unconventional slideshow?
What is a unconventional slideshow? How do you make a unconventional slideshow? This script and codes were developed by Laura Moraiti on 27 August 2022, Saturday.
Unconventional slideshow - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Unconventional slideshow</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="top"></div>
<div class="row"> <div class="small-element black">1</div> <div class="small-element coral">2</div> <div class="small-element red">3</div> <div class="small-element blue">4</div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Unconventional slideshow - Script Codes CSS Codes
.black { background-color: black;
}
.coral { background-color: coral;
}
.red { background-color: red;
}
.blue { background-color: blue;
}
* { box-sizing: border-box; color: white;
}
.top { height: 500px; position: relative;
}
.top .current { width: 20%; height: 0; position: absolute; top: 100%; left: 40%;
}
.row { width: 100%; height: 200px; overflow: hidden; position: relative;
}
.row .small-element { width: 33.3333%; line-height: 200px; text-align: center; font-size: 2em; font-weight: bold; float: left; -webkit-transition: all .5s ease-in-out; transition: all .5s ease-in-out;
}
Unconventional slideshow - Script Codes JS Codes
$('.row').on('click', '.small-element', function(){ var ele = $(this), top = ele.clone(), row = ele.clone(); top .addClass('current') .appendTo('.top') .animate({ width: '100%', height: '100%', top: 0, left: 0 }, 500, function() { ele.animate({'width': '0'}, 500, function(){ row.appendTo('.row'); }); var bro = $(this).prev('.current'); $('.current').not($(this)).not(bro).remove(); }); $('.small-element[style="width: 0px;"]').remove();
});
Developer | Laura Moraiti |
Username | Fixie |
Uploaded | August 27, 2022 |
Rating | 3 |
Size | 2,567 Kb |
Views | 30,360 |
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 |
Fun responsive split layout | 3,484 Kb |
WIP accordion without jQueryUI | 2,724 Kb |
Music equalizer bars with jQuery | 2,372 Kb |
Responsive Equal Height Columns using jQuery | 3,830 Kb |
WIP | 3,174 Kb |
Striped background for a container with more than one element | 1,942 Kb |
Reusable simple dropdown | 1,873 Kb |
Simple and clean form | 5,390 Kb |
A Pen by Laura Moraiti | 5,467 Kb |
Easy hover effect for videos | 1,985 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 |
Custom checkbox example | Capelo | 3,495 Kb |
How to add Css Fold Notes In Blogger By Askwithloud.com | Askwithloud | 2,280 Kb |
Loading Bar | Jaradlight | 2,333 Kb |
CSS only simple parallax scroll | Stanssongs | 3,708 Kb |
JQuery FullScreen Overlay | _codemics | 2,252 Kb |
Two joint circles - One element | Berdejitendra | 1,704 Kb |
404 Page | Saransh | 2,666 Kb |
OnScreenAction | Ozgursagiroglu | 2,647 Kb |
A Pen by Mike Otis | Mikeotis | 3,185 Kb |
Flat UI Button | Honchoman | 2,289 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!