-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathweb.js
More file actions
29 lines (24 loc) · 723 Bytes
/
web.js
File metadata and controls
29 lines (24 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$(document).ready(function(){
$('.nav-link').click( function(e) {
var li = $(this).attr('href');
e.preventDefault();
$('html,body').animate( {
scrollTop:$(li).offset().top
},1250);
});
AOS.init({
duration: 1500,
});
$('ul.nav li.dropdown').hover(function() {
$(this).find('.dropdown-menu').stop(true, true).delay(150).fadeIn(300);
}, function() {
$(this).find('.dropdown-menu').stop(true, true).delay(150).fadeOut(300);
});
$('a.smooth-scroll').on("click", function(e) {
var anchor = $(this);
$('html, body').stop().animate({
scrollTop: $(anchor.attr('href')).offset().top
}, 1000);
e.preventDefault();
});
});