Commit 7056667e authored by Nameer AS's avatar Nameer AS

ie smoothscroll issue

parent e1ed639e
...@@ -95,7 +95,8 @@ $(document).ready(function() { ...@@ -95,7 +95,8 @@ $(document).ready(function() {
$(parent).each(function() { $(parent).each(function() {
var child = $(this).find('.smooth-scroll'); var child = $(this).find('.smooth-scroll');
var secId = child.attr('href'); var secId = child.attr('href');
child.on('click', function() { child.on('click', function(e) {
e.preventDefault();
$('html,body').animate({ $('html,body').animate({
scrollTop: $(secId).offset().top - $('header').outerHeight() scrollTop: $(secId).offset().top - $('header').outerHeight()
}, 1500); }, 1500);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment