NAVIGATION
By default, the browser “jerks” you up or down in the page when you click on an anchor – SmoothScroll lets you define the duration that it should take for a link to be scrolled down to.
Idea: David Walsh - http://davidwalsh.name/smooth-scroll-mootools
Example: –
Docu: –
Forum: –
Author: David Walsh - http://davidwalsh.name/smooth-scroll-mootools
wiki-Author: K.Heermann (flip-flop) http://planmatrix.de) 27.07.2011
CMS Version: >= 1.4.7 (r4xx)
Version: V1.0
Tag: –
filename: * template/lib/mootools/plugin-1.2/mootools.SmoothScrollToTop-1.2.js
Floder: template/lib/mootools/plugin-1.2 [plugin-1.3]
Condition: → /config/phpwcms/conf.inc.php
The JS code, the CSS file and the button image is stored in the directories listed above.
<!-- JS: SmoothScrollToTop-1.2 -->
oder
<!-- JS: SmoothScrollToTop-1.3 -->
<!-- JS: MORE:Fx/Fx.Scroll,Fx/Fx.SmoothScroll -->
<a href="#top">
. (This call will be generated automatically in each CP with the switch “Top-Link: [x]”).
Version for Mootools V1.2- und V1.3
File template/lib/mootools/plugin-1.2/mootools.SmoothScrollToTop-1.2.js
File template/lib/mootools/plugin-1.3/mootools.SmoothScrollToTop-1.3.js
mootools.back-to-top-1.2.js oder mootools.back-to-top-1.3.js
/** * -------------------------------------------------------------------------- * smooooooth scrolling using mootools 1.2/3.x * * author: David Walsh - http://davidwalsh.name/smooth-scroll-mootools * * version: 1.0 * released: Wednesday, April 23, 2008 * * -------------------------------------------------------------------------- */ //when the dom is ready window.addEvent('domready',function() { //smooooooth scrolling enabled //new SmoothScroll({ options }, window); new Fx.SmoothScroll({ duration:600 }, window); //700 milliseconds to get there });
Version 1.0: smooth_scroll_to_top.zip (1.56 KiB, 98 downloads)