Simple Waypoint Example
How do I make an simple waypoint example?
Just fiddling with a simple waypoint example.. What is a simple waypoint example? How do you make a simple waypoint example? This script and codes were developed by Bottomline Interactive on 25 September 2022, Sunday.
Simple Waypoint Example - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple Waypoint Example</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ div { background: #e1e1e1; height: 50px;
}
#waypoint { margin: 200px 0;
}
.onn { background: firebrick; transition: all 0.5s ease;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="toptrigger">Removes class</div>
<div id="waypoint">Waypoint</div>
<div id="btmtrigger">Adds Class</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://imakewebthings.com/jquery-waypoints/waypoints.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Simple Waypoint Example - Script Codes CSS Codes
div { background: #e1e1e1; height: 50px;
}
#waypoint { margin: 200px 0;
}
.onn { background: firebrick; transition: all 0.5s ease;
}
Simple Waypoint Example - Script Codes JS Codes
$('#btmtrigger').waypoint(function() { $('#waypoint').addClass('onn'); //console.log (this); //alert('You have scrolled to an entry.');
}, {
// offset: '350' //pixels
// offset: '100%' offset: 'bottom-in-view'
// Offset determines how far the top of the element must be from the top of the browser window to trigger a waypoint
});
$('#toptrigger').waypoint(function() { $('#waypoint').removeClass('onn');
}, { offset: '-1'
});
Developer | Bottomline Interactive |
Username | BottomlineInteractive |
Uploaded | September 25, 2022 |
Rating | 3 |
Size | 2,222 Kb |
Views | 101,200 |
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 |
Bootstrap Accordion | 2,213 Kb |
Cut and Paste Roll Link | 2,546 Kb |
CSS Page Curl Shadows | 3,461 Kb |
Unusual Underline | 1,805 Kb |
Simple round Numbered Styling | 1,780 Kb |
Calculator | 39,488 Kb |
CSS Stitched Effect | 1,889 Kb |
Bootstrap Sandbox | 1,547 Kb |
Sticky Nav with Scrollto | 2,518 Kb |
Cut and Paste CSS Effects | 2,373 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 |
Video Player Custom Controls | EleftheriaBatsou | 3,665 Kb |
Airbnb Homepage | SindhujaD | 2,480 Kb |
A Pen by lizz | Lizz | 10,068 Kb |
A simple log in form made with css | Mayurelbhar | 2,160 Kb |
Transition | Shayhowe | 1,632 Kb |
Rows with image hover effect | Amit-webdesigner | 12,875 Kb |
Filtering with shuffle.js | Deyand | 2,712 Kb |
Hover Animation from UNIQLO | Insprd | 3,772 Kb |
SlideupBoxes | Gavra | 23,772 Kb |
Experiments with Vertical Centering | KatieK2 | 3,924 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!