/simplr-smoothscroll

Smooth scrolling in all browsers.

Primary LanguageJavaScriptMIT LicenseMIT

#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.