Comments (2)
Sorry, there is no function to create many watchers. You can do this if you have a polyfill for Array.from
var watchers = Array.from(myElements).map(scrollMonitor.create)
This will also work with document.querySelector
.
from scrollmonitor.
@stutrek
Thanks for your answer
I don't understand
This will also work with document.querySelector.
I thought that querySelector returns the first element that matches with the class.
How could I create many watchers with document.querySelector ?
from scrollmonitor.
Related Issues (20)
- document.body is null HOT 1
- Can we have the minified version?
- Uncaught TypeError: Cannot read property 'scrollHeight' of null
- How to fix another pages issue? HOT 1
- Not working after initial load when using Turbolinks HOT 1
- Hash jump across elements fullyEntered elements are triggered out of order HOT 1
- scrollMonitor Events Runs Once just for one time HOT 2
- Can't create a new watcher after destroying one HOT 3
- on scroll event HOT 1
- Wrong position calculation after content insertion HOT 4
- .off Method not working HOT 2
- Newb Question Not Issue HOT 3
- EnterViewport doesn't work with css scroll snap HOT 1
- Refreshing page and loading into the middle causes all the numbers to be wrong. HOT 1
- Turn off elementWatcher? HOT 1
- Dead links in readme HOT 1
- IsFullyEntered is triggered on DomContentLoaded for all items regardless of their state
- `1.2.7` broke CJS HOT 1
- Getting some warning and that inturn breaking the functionality (v1.2.8) HOT 4
- SSR not working after v 1.2.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrollmonitor.