onScreen icon indicating copy to clipboard operation
onScreen copied to clipboard

A light library that does stuff when the matched elements enter or leave the viewport

Results 18 onScreen issues
Sort by recently updated
recently updated
newest added

It might be a good idea to rewrite plugin with support of Intersection Observer. 1. It's got some support already - https://caniuse.com/#feat=intersectionobserver 2. There is a polyfill - https://www.npmjs.com/package/intersection-observer In...

Hi, I am trying to add stop some animations when those elements are not in viewport. I try this using your plugin with the **on.leave** event and it does not...

The `check` function should call `inContainer` instead of `inViewport`.

bug

Hi, thanks for the awesome library. I need help though with the library's integration with [React](https://facebook.github.io/react/). Seems like the events are not propagating as well as expected in React. `enter`...

I've been using this library and needed to add different tolerance values according to element boundaries. This allows tolerance configuration as before or as separate properties for each side.

Hello, I have this script to monitor when a element will enter or leave the viewpoint. ```js $(function() { var os = new OnScreen(); var header = $('.top-bar'); os.on('enter', '#header',...

I was testing one of my projects with this plugin in a IOS and the listeners are not working..

help wanted

Added parameter `direction` to `'enter'` and `'leave'` callback. added sinon for testing, and test for direction parameter.