Foundation 6 + Lazy Loading
How do I make an foundation 6 + lazy loading?
A quick set up of lazy loading images plus foundation. What is a foundation 6 + lazy loading? How do you make a foundation 6 + lazy loading? This script and codes were developed by Simon Codrington on 01 October 2022, Saturday.
Foundation 6 + Lazy Loading - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Foundation 6 + Lazy Loading</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet prefetch' href='https://rawgit.com/zurb/foundation-sites/develop/dist/foundation.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="row"> <h2>Foundation Lazy Load Images</h2> <h4>Using Lazy Load jQuery plugin to </h4> <p>Lazy load will only load images that are within the viewport, meaning images outside the viewport will be loaded asynchronously</p> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=1"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=2"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=3"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=4"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=5"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=6"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=7"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=8"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=9"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=10"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=11"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=12"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=13"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=14"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=15"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=16"/></div></div> <div class="small-6 medium-4 large-3 columns"><div class="imgwrap"><img class="lazyimg" data-original="http://loremflickr.com/300/300/?t=17"/></div></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://rawgit.com/zurb/foundation-sites/develop/dist/foundation.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.js'></script> <script src="js/index.js"></script>
</body>
</html>
Foundation 6 + Lazy Loading - Script Codes CSS Codes
.imgwrap{ width: 100%; height: 0px; padding-bottom: 100%; position: relative; margin-bottom: 30px;
}
.lazyimg{ width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; transition: all 700ms linear;
}
Foundation 6 + Lazy Loading - Script Codes JS Codes
$('.lazyimg').lazyload({ effect : "fadeIn", effect_speed: 800, load: function(elements_left, settings){ } });
Developer | Simon Codrington |
Username | simoncodrington |
Uploaded | October 01, 2022 |
Rating | 3 |
Size | 2,178 Kb |
Views | 125,488 |
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 |
Mobile Navigation Menus - Menu slide from left | 3,701 Kb |
CSS animations on scroll - Fade from bottom up | 4,729 Kb |
Mobile Navigation Menus - Scale from 0 to 1 open | 3,968 Kb |
Foundation 6 - Flex Grid | 3,805 Kb |
Video API Interactive Showcase | 6,047 Kb |
Fancy Card Animation | 2,419 Kb |
Stripe Header Grid | 4,140 Kb |
CSS animations on scroll - Slide in from left | 4,324 Kb |
Foundation 6 Interchange | 1,805 Kb |
CSS Pulsating Sonar | 2,578 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 |
BlueBox Fork | Huskynation | 12,675 Kb |
Faux column absolute wrapper | Yurimorini | 1,823 Kb |
Pomodoro Timer | Sdas13 | 2,900 Kb |
CSS Infinite 360 | APinix | 5,564 Kb |
Twinner Spinner II | Katydecorah | 2,974 Kb |
Twitch.tv API | Ryzokuken | 2,618 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
Heartbeat | Apetrov | 2,079 Kb |
Pure CSS Torch Light | Juliendargelos | 2,727 Kb |
Front in Aracaju Logo Pure CSS | Shankarcabus | 2,581 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!