A versatile & lightweight plug-in for jQuery that adds enterviewport and leaveviewport events to elements.
Works in all modern browsers
Check the output log for events.
Check the output log for events.
Check the output log for events.
Check the output log for events.
Check the output log for events.
Bind any of Bullseye's events. Then initialize Bullseye with bullseye(settings).
// Sample callback function
function logThis(e) {
alert($(this).attr('id') + ': ' + e.type);
}
// jQuery DOM-Loaded event
$(function() {
$('.bullseye')
// Bind events
.bind('viewportenter', logThis)
.bind('viweportleave', logThis)
// Initialize Bullseye
.bullseye();
});
Bullseye extends jQuery so that you can use the following events:
When you call the bullseye-function you can set some options (type - default value):