Skip to content

SMOOTH SCROLL #1

Description

@IAmeer17

The Smooth Scroll Feature Can Be Changed Very Easily, But Tampering With Any Of The Connections With The index.html, and the scroller, can cause a few problems unless you have a better idea of working them.

CODE FOR SCROLL

`/* Smooth scroll to # anchors */

$(document).ready(function(){
$('a[href^="#"]').on('click',function (e) {
e.preventDefault();

var target = this.hash,
$target = $(target);
$('html, body').stop().animate({
    'scrollTop': $target.offset().top - 63
}, 1000, 'swing', function () {
    window.location.hash = target;

});

});
});`

You Can Make Adjustments To The Scroller, Here ^^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions