Gaby
Gaby

Reputation: 39

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?

Upvotes: 3

Views: 12433

Answers (2)

Charlotte Dann
Charlotte Dann

Reputation: 298

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

Upvotes: 0

jeffreydev
jeffreydev

Reputation: 1722

Do you mean something like this:

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

Upvotes: 2

Related Questions