javascript - how to set transition to mouse scroll -


I would like to add a transition to my web page with custom scrolling (I can override lines at a fast-to-normal rate I am). My code is following -

  & lt; Html & gt; & Lt; Top & gt; & Lt; Script & gt; Var MOUSE_WHEEL_GAIN = 1000; Function On-Mouse Volume () {window.scrollTo (0, document.body.scrollTop - event.wheelDelta / 120 * MOUSE_WHEEL_GAIN); Var e = window.event; E.returnValue = false; E.cancelBubble = true; return false; } & Lt; / Script & gt; & Lt; Top & gt; & Lt; Body ONMOUSEWHEEL = "onmouse violet ()" & gt; & Lt; Script & gt; (I = 0; i & lt; 20; i ++) document.write ("& lt; p>" + + + + "For the mi, I am working for my work, But for some time he does more work to do work to work. No one does the work to do any kind of exercise, which can be used to avoid leaving him. There should not be any information about any kind of work. Ltorum.  "); & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

I think the code should be the code to appear as a smooth transition, what is the javascript method or should I use something else?

This is the most efficient way to use DOM-L3:

  // HTML block & lt; Canvas onmousemove = "TrackMouse (event)" & gt; & Lt; / Canvas & gt; // JS Block Function TrackMouse (e) {window.scrollBy (E. Webkitimate X, E. WebKitWoft Y); }  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -