Created
April 2, 2018 11:32
-
-
Save mjinayan80/e1ca45a31d9c550520eefad1e5f8c48e to your computer and use it in GitHub Desktop.
jquery-easing-js code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //jquery-easing-js | |
| $('.smooth-menu a').bind('click', function(event){ | |
| var $anchor = $(this); | |
| var headerH = '30'; | |
| $('html, body').stop().animate({ | |
| scrollTop : $($anchor.attr('href')).offset().top - headerH +"px" }, 1200, 'easeInOutExpo'); | |
| event.preventDefault(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment