Effect.ScrollTo
Combination Effects > Effect.ScrollTo
Scrolls to a specific place in the page.
Examples
Effect.ScrollTo('id_of_element');
Options
| Option | Description |
|---|---|
| duration | float value, in seconds, defaults to 1.0 |
| offset | integer value, in pixels, defaults to 0 |
Notes
Demo
Click me to scroll to the top of the article
Source code of this demo
<a href="#" onclick="Effect.ScrollTo('article_top'); return false;">Click me to scroll to the top of the article</a>
