-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
29 lines (25 loc) · 737 Bytes
/
main.js
File metadata and controls
29 lines (25 loc) · 737 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 () {
// $(".menu-toggler").on('click', function() {
// $(this).toggleClass('open');
// $('.top-nav').toggleClass('open');
// });
// $(".top-nav .nav-link").on('click', function() {
// $('.menu-toggler').removeClass('open');
// $('.top-nav').removeClass('open');
// });
$('nav a[href*="#"]').on('click', function() {
$('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top + 30
}, 2000)
});
$("#up").on('click', function() {
$('html, body').animate({
scrollTop: 0
}, 2000)
});
AOS.init({
easing: 'ease',
duration: 1800,
once: true
})
});