jquery - Horizontal Scrolling with Mousewheel -



jquery - Horizontal Scrolling with Mousewheel -

i'm using chris coyier's method of encapsulating table cells around divs via js accomplish horizontal scrolling http://css-tricks.com/how-to-create-a-horizontally-scrolling-site/ . however, scroll had either have mouse horizontal scrolling or hold shift while scrolling.

so, used hscroll.js plugin http://paulicio.us/items/view/24/horizontal-page-scrolling-using-javascript lets scroll page laterally via mousewheel.

but there considerable lag/choppiness when tested in firefox , opera(works fine in chrome , safari). think brandon aaron's mousewheel.js http://brandonaaron.net/code/mousewheel/docs viable solution don't know how implement plugin i'm illiterate when comes js.

jsfiddle: http://jsfiddle.net/694tk/3/

update: tinyscroll plugin seems work fine except doesn't have easing, solution that?: http://jsfiddle.net/694tk/6/

yet update: http://jsbin.com/uwehot/ mary lou's circular content carousel*(http://tympanus.net/codrops/2011/08/16/circular-content-carousel/)* @ play here. works quite well, except anchor links won't work.

hm, don't think table approach enough. seek wrap paragraphs , set anchor links titles

that anchor links start-stop "marks" animation. each time user starts scroll (the event triggered plugin) animation starts , ends next anchor example

this guy uses button click events trigger animation

$('#btn_two').click(function(){ $('.nav').fadeout("fast").fadein("slow"); $.scrollto(this.hash, 1500, { easing:'elasout' }); });

you utilize mousewheel event. that's little violent approach though in order move smoothly user scrolls utilize easing plugin

jquery scroll mousewheel

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -