Comments (8)
+1 it would be super useful to carousel
from scrollmonitor.
I don't recommend but if you really want to have or need a quick-win solution (but dirty), clone the not minimized version of scrollMonitor.js (and call it scrollMonitorHoriz.js, e.g.) and apply the following changes to the code:
- rename all "scrollMonitor" to "scrollMonitorHoriz"
- apply the following replacements (case sensitive):
- "top" => "left"
- "Top" => "Left"
- "bottom" => "right"
- "Bottom" => "Right"
- "height" => "width"
- "Height" => "Width"
- "window.pageYOffset" => "window.pageXOffset"
and this should make the trick but that new version will no longer support the vertical scrolling...
from scrollmonitor.
Unfortunately you cannot. It's a surprisingly rare feature request.
from scrollmonitor.
Actually it will be very usefull
from scrollmonitor.
I have to agree horizontal scroll would be useful.
from scrollmonitor.
Yes please!
from scrollmonitor.
🤘 Nice hack.
I think there's a second place you'll need to edit if you want it to work in scroll containers too, but if it works keep doing it.
from scrollmonitor.
+1 It would be very helpful!
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.