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

ie smoothscroll issue

parent e1ed639e
......@@ -95,7 +95,8 @@ $(document).ready(function() {
$(parent).each(function() {
var child = $(this).find('.smooth-scroll');
var secId = child.attr('href');
child.on('click', function() {
child.on('click', function(e) {
e.preventDefault();
$('html,body').animate({
scrollTop: $(secId).offset().top - $('header').outerHeight()
}, 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