Super Simple Fader
How do I make an super simple fader?
Just about the easiest (and leanest) jQuery image fader out there. Thanks to @snookca for doing the brunt of the work.. What is a super simple fader? How do you make a super simple fader? This script and codes were developed by Kyle Foster on 04 September 2022, Sunday.
Super Simple Fader - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Super Simple Fader</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section id="fader"> <img src="http://ecx.images-amazon.com/images/I/517HpPUIsxL.jpg" alt="Image One"> <img src="http://ecx.images-amazon.com/images/I/413WE38pDRL.jpg" alt="Image Two"> <img src="http://ecx.images-amazon.com/images/I/71Uj7GcOkZL._SL1500_.jpg" alt="Image Three"> <img src="http://ecx.images-amazon.com/images/I/51MSV6KQM5L.jpg" alt="Image Four"> <img src="http://ecx.images-amazon.com/images/I/71ATrvSOhcL._SL1400_.jpg" alt="Image Five">
</section> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Super Simple Fader - Script Codes CSS Codes
#fader { display: none; position: relative; width: 90%; max-width: 400px; margin: 0 auto; top: 20px;
}
#fader img { position: absolute; top: 0; left: 0; max-width: 100%; height: auto;
}
Super Simple Fader - Script Codes JS Codes
$(document).ready(function() { var fader = $('#fader'); fader.find('img:gt(0)').hide(); fader.fadeTo(500, 1); setInterval(function(){ fader.find(':first-child') .fadeTo(500, 0) .next('img') .fadeTo(500, 1) .end() .appendTo(fader); }, 4000);
});
Developer | Kyle Foster |
Username | hkfoster |
Uploaded | September 04, 2022 |
Rating | 4.5 |
Size | 2,014 Kb |
Views | 62,744 |
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 |
SVG Optimization Breakdown | 8,022 Kb |
Askew - A Subtle Parallax Banner Plugin | 5,081 Kb |
Gradual.js | 2,685 Kb |
Rumble on Hover | 150,889 Kb |
A Pen by Kyle Foster | 2,404 Kb |
Cattywompus - A Subtle Parallax Banner Plugin | 4,486 Kb |
Vanilla FlowType.js | 4,247 Kb |
Manipulating SVG With CSS | 3,640 Kb |
Messing Around with CSS3 Shadows | 2,202 Kb |
Freemason.js | 12,873 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 |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
Scroll using CSS | Casperovic | 2,159 Kb |
Wikipedia Viewer | Odylic | 2,333 Kb |
Cartoon Bomb | Tcmulder | 4,929 Kb |
Twinner Spinner II | Katydecorah | 2,974 Kb |
SVG Text Masking | JMChristensen | 2,141 Kb |
Responsive scrolling text | Ashdurham | 2,259 Kb |
Realistic Buttons | Stoypenny | 2,248 Kb |
Improve | Gavra | 1,652 Kb |
Popover Example | Seanboom | 2,429 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!