Skip to content

iahnn/simplr-smoothscroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#simplr-smoothscroll

##DEMO

##Requirements jquery-mousewheel

##Usage

$(function () {
    $.srSmoothscroll({
        // defaults
        step: 55,
        speed: 400,
        ease: 'swing'
    });
});

##Browser and os detection Browsers that support smooth scrolling natively may be excluded.

$(function () {
    var platform = navigator.platform.toLowerCase();
    if (platform.indexOf('win') == 0 || platform.indexOf('linux') == 0) {
        if ($.browser.webkit) {
            $.srSmoothscroll();
        }
    }
});

This will enable simplr-smoothscroll only for webkit browsers on windows and linux.

About

Smooth scrolling in all browsers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%