first commit
This commit is contained in:
19
html/assets/js/custom.js
Normal file
19
html/assets/js/custom.js
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
(function($) {
|
||||
'use strict';
|
||||
|
||||
// Main Navigation
|
||||
$( '.hamburger-menu' ).on( 'click', function() {
|
||||
$(this).toggleClass('close');
|
||||
$('.site-branding').toggleClass('hide');
|
||||
$('.site-navigation').toggleClass('show');
|
||||
$('.site-header').toggleClass('no-shadow');
|
||||
});
|
||||
|
||||
// Scroll to Next Section
|
||||
$( '.scroll-down' ).click(function() {
|
||||
$( 'html, body' ).animate({
|
||||
scrollTop: $( '.scroll-down' ).offset().top + 100
|
||||
}, 800 );
|
||||
});
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user