Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Anchor
- $(document).ready(function() {
- $("a.anchor").click(function() {
- $("html, body").animate({
- scrollTop: $($(this).attr("href")).offset().top + "px"
- }, {
- duration: 500,
- easing: "swing"
- });
- return false;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement