Skip to content
/ simpleScroll Public template

Smooth Scroll to Top and Bottom.Simple and Easy to use.Pure JavaScript Library.

License

Notifications You must be signed in to change notification settings

happy358/simpleScroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simpleScroll.js

Smooth Scroll to Top and Bottom.
Simple and Easy to use.
Pure JavaScript Library.

License

The source code is licensed MIT.

Demo

https://labs.manohara.info/simplescroll/

Usage

https://labs.manohara.info/simplescroll/

Basic Usage

<script defer src='path/to/simpleScroll.js' id="script_simplescroll"></script>

Detail Setting - Sample

<script defer src='path/to/simpleScroll.js' id="script_simplescroll" data-color="white" data-border="black" data-bordersize="10" data-size="33"></script>

Parameters

data-color: Icon color,String (default: grey)
data-border: Icon border color,String (default: white)
data-bordersize: Icon border width,Numeric (default(px): 1)
data-size: Icon size,Numeric (default(px): 35)

Polyfill

Scroll-Behavior-polyfill Library : for Safari and Edge

<script defer src='https://cdnjs.cloudflare.com/ajax/libs/iamdustan-smoothscroll/0.4.0/smoothscroll.min.js'></script>

https://github.com/iamdustan/smoothscroll

About

Smooth Scroll to Top and Bottom.Simple and Easy to use.Pure JavaScript Library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published