简体   繁体   中英

Infinite Horizontal Scroll on Tumblr

I'm not sure if any of you are familiar with Tumblr but I'm simply trying to attain a HORIZONTAL infinite scroll. Vertical infinite scrolls are easy to find.

Now, I did find one on jsfiddle:

jsfiddle.net/URCwd/20

Unfortunately, I don't know how to incorporate it into the Tumblr HTML.

Can someone please help me?

Do you mean something like this:

$(document).ready(function() {  
    $(window).scroll(function() {
        if ( $(window).scrollLeft() >= ($('body').width() - $(window).width()) ) {
            $('body').width('+=100');
        } 
    });
});

I did this on one of my themes by using Paul Irish's infinite scroll jquery plugin and essentially changing all the height s to width s and the top s to left s. Sounds rather fiddly but worked like a charm.

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