Comments (1)
Hi!
I got the exact same question on Stackoverflow (http://stackoverflow.com/questions/11935652/smooth-div-scroll-jquery-plugin-endless-loop-not-working) and answered it there, but since I'm not sure if it was you who asked that question as well, I'll post the answer here too:
The reason why the scroller grinded to a halt when it came to the Radio Shack logo was that the scrollable area didn't contain enough logos "to go around". So when it reached the Radio Shack logo and tried to swap for the next logo in the never ending queue, there was no free (not visible) logo to switch to.
I fixed this by adding a couple of more logos to the scrollable area. If you try the same demo page (http://smoothdivscroll.com/clickableLogoParade.html) now it will work fine. Sorry about the faulty demo!
Two important rules when you implements Smooth Div Scroll:
- The combined width of all the elements inside the scrollable area need to be bigger than the width of the scroller.
- If you are using the autoscrolling option, apart from rule 1, you also need to make sure that there are enough elements so the scroller can swap.
For rule number 2 you can imagine a man standing by a conveyor belt full of printed photos. Every time a photo falls off the edge at the end, this man picks it up, runs to the beginning of the conveyor belt and puts it there. And this goes on in a never-ending loop.
Good luck!
/Thomas
from smooth-div-scroll.
Related Issues (20)
- jScrollPane and Smooth Div Scroll
- Click to center image function not working in scroll gallery HOT 1
- How to change horizontal scroll to vertical scroll in Smooth Div Scoll HOT 2
- Responsive Height
- scroll stopping when mouse out from left and right icons
- I've used this as a navbar on mobile devices and it's worked great until recently...
- Wrong setting when using kinetic.js
- Uncaught TypeError: Cannot read property 'show' of undefined HOT 2
- HTML5 Validation Messages Not Displayed
- Enable vertical Page-Scrolling HOT 4
- Can we use this plugin in commercial website? Is it free? Thanks. HOT 1
- pauseOnHover option when autoScrollingMode: "always" is applied HOT 1
- Still cannot click on href on touchscreens HOT 1
- The last div doesn't show up
- When touch scrolling is enabled, links within an individual block aren't clickable
- Auto Scroll Speed when Mouse approaches ARROWS
- jQuery 3 broke plugin... HOT 2
- Uncaught TypeError: $(...).smoothDivScroll is not a function HOT 1
- Uncaught TypeError: $(...).smoothDivScroll is not a function HOT 1
- Can possible to provide React integration example
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 smooth-div-scroll.