Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BaseMax/GoScrollJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

19 Commits

Repository files navigation

GoScroll

GoScrollJs

Tiny and Powerful Library for change place of the scroll and focus on element.

GoScroll.min.js File Size GoScroll.min.js Validation Code

Features

  • Fast
  • Compact
  • No dependencies
  • With animation and effects

Arguments

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)

Samples

To view the full details, run the Example.html file.

data-scroll-go

<button data-scroll-go="#id_name">Go</button>
<button data-scroll-go=".class_name">Go</button>

data-scroll-offset

<button data-scroll-offset="150" data-scroll-go=".class_name">Go</button>

data-scroll-time

<button data-scroll-time="5000" data-scroll-go=".class_name">Go</button>

data-scroll-to

<button data-scroll-to="280">Go</button>

onclick

<button data-scroll-go="span.class_name" onclick="goscroll.go(this)">
<button data-scroll-to="480" onclick="goscroll.goto(this)">

License

GoScroll is licensed under the GNU General Public License.

About

Tiny and Powerful Library for change place of the scroll and focus on element.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /