English 中文(简体)
2. 与穆索赫尔的横向采样
原标题:Horizontal Scrolling with Mousewheel

I m using Chris Coyier s method of encapsulating table cells around divs via js to achieve horizontal scrolling http://css-tricks.com/how-to-create-a-horizontally-scrolling-site/ . However, to scroll you had to either have a mouse with horizontal scrolling or hold shift while scrolling.

因此,我使用了这一标题。 允许你随后通过摩西车把这页推上。

但是,在Edrea和Pero(在 Chrome和Sato进行微调)测试时,有相当的滞后/胎。 Iink Brandon Ramadan s mousewheel.js http://brandonaaron.net/code/mousewheel/docs。 这将是一个可行的解决办法,但我不知道在我不识字时如何执行这一gin。

Jsfiddle:

<>Update: 微粒似乎在工作上是细微的,除非它没有放松,任何解决办法? http://jsfiddle.net/694TK/6/

Yet another Update: http://jsbin.com/uwehot/
Mary Lou s circular content carousel*(http://tympanus.net/codrops/2011/08/16/circular-content-carousel/)* at play here.
It works quite well, except that anchor links won t work.

问题回答

Hm, I don t think so that the table approach is good enough. Try to wrap your paragraphs and set anchor Links to the titles

That anchor links will be the start-stop "marks" for your animation. Each time a user starts to scroll (the event will be triggered by your plugin) the animation starts and ends to the next anchor Look an example

这种伪装利用 but子点击事件引发他的估计。

$( #btn_two ).click(function(){
$( .nav ).fadeOut("fast").fadeIn("slow");
$.scrollTo(this.hash, 1500, { easing: elasout  });
});

You will use mousewheel event. That s a little violent approach though In order to move smoothly as the user scrolls is to use the easing plugin





相关问题
how to detect Android ListView Scrolling stopped?

I m trying to do something after scrolling stopped.So, I tried using OnScrollListener#onScrollStateChanged(SCROLL_STATE_IDLE) to detect when the scrolling stopped(either TOUCH_SCROLL or FLING)(at 1.5 ...

jQuery - ScrollTo and Serial Scroll not working together

I have tested the scrollTo() plugin, but I need a way to stop the scrolling animation, so I am looking at serialScroll(). Here is what I used with scrollTo: $( #scroller ).scrollTo( 1000px , 3000); ...

Scrolling to the bottom of a div

As part of an ajax chat room (using prototype framework) I am working on I scroll the user to the bottom each time a message is added using the below js. However if the user has scrolled up and the ...

Displaying news with javascript

I keep coming up against this issue. Displaying news on a website. And I d like to come up with a solution to use like a template, something I can just drop on a site easily. The solution I keep ...

UITextview content moves up when textview is selected

I am pretty new to this iPhone dev thing but so far I have built a pretty good app but I have stumbled into this problem that for the life of me I cannot seem to solve. Basically the app is a chat ...

热门标签