Detects if an element falls of the right side of your screen
Adds a class "offscreen" to all your elements with the defined selector that fall of the right side of the screen.
- • checks all the elements with the defined selector.
- • rechecks everything when resize (optimized resize)
$( document ).ready(function() {
$('yourelements').offscreen();
});
jQuery