Reputation: 39
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:
Unfortunately, I don't know how to incorporate it into the Tumblr HTML.
Can someone please help me?
Upvotes: 3
Views: 12433
Reputation: 298
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.
Upvotes: 0
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