Simple Waypoint Example

Size
2,222 Kb
Views
101,200

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 Previews

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'
});
Simple Waypoint Example - Script Codes
Simple Waypoint Example - Script Codes
Home Page Home
Developer Bottomline Interactive
Username BottomlineInteractive
Uploaded September 25, 2022
Rating 3
Size 2,222 Kb
Views 101,200
Do you need developer help for Simple Waypoint Example?

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!

Bottomline Interactive (BottomlineInteractive) Script Codes
Create amazing blog posts 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!