Posted By

ianmonge on 11/06/08


javascript mootools fxscroll

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Mootools : Fx.Scroll moves page to top

 / Published in: JavaScript

Como hacer que el scroll de la página suba hasta arriba, para mostrar el principio de la página. Requiere el plugin Fx.Scroll que no viene con el core de Mootools 1.2.

  1. var scroller = new Fx.Scroll(document.body);
  2. $('link_to_top').addEvent('click', function(){
  3. scroller.toTop();
  4. }

Report this snippet  

You need to login to post a comment.