Tiny and Powerful Library for change place of the scroll and focus on element.
- Fast
- Compact
- No dependencies
- With animation and effects
Argument Name | Goal |
---|---|
data-scroll-go | Go to a element |
data-scroll-offset | Set Custom Offset (default : 50) |
data-scroll-time | Set Custom Time (default : 500) |
data-scroll-to | Go to a position (pixel) |
To view the full details, run the Example.html file.
<button data-scroll-go="#id_name">Go</button>
<button data-scroll-go=".class_name">Go</button>
<button data-scroll-offset="150" data-scroll-go=".class_name">Go</button>
<button data-scroll-time="5000" data-scroll-go=".class_name">Go</button>
<button data-scroll-to="280">Go</button>
<button data-scroll-go="span.class_name" onclick="goscroll.go(this)">
<button data-scroll-to="480" onclick="goscroll.goto(this)">
GoScroll is licensed under the GNU General Public License.