You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, you should set overflow: auto on the parent to be scrolled. If that works and you can scroll manually, you should be able to scroll programmatically by calling the plugin. Make sure the element is the same that has the scrollbar.
Most like you'll put the ul inside a div, the div has overflow: auto and you call $().scrollTo on it. Your example is trying to scroll the ul, that doesn't have scrollbar. You could also scroll the window if you intended to move the whole screen
(Disclaimer: I must have misunderstood something - but ofc, I don't see what it is. So I apologize in advance for this silly question! 馃槈)
I am trying to scroll the items of a
ul
to make a specificli
visible - but I'm failing (see this Codepen).What have I done wrong?
The text was updated successfully, but these errors were encountered: