简体   繁体   中英

Scrolling an element horizontally using JQuery on mouse scroll

I have a simple image gallery here . All I want to do is to scroll through the list of images when the user scrolls his mouse.

Any ideas ? $('').scroll() definitely doen't work. Even if i bind it to the window by

$(window).scroll(function() {
  //do something
});

It doen't work , because my window has too less height to be scrollable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM