Service page and Smooth transition update

This commit is contained in:
jackiesung4ev
2021-01-24 14:56:16 +08:00
parent a957b21265
commit 762962a427
9 changed files with 146 additions and 87 deletions

View File

@@ -0,0 +1 @@
$(document).ready((function(){$(".hamburger").click((function(){$(this).toggleClass("is-active"),$(".nav-menu").toggleClass("active"),$(".nav-bar").toggleClass("active")}))}));var btn=$("#back-to-top");$(window).scroll((function(){$(window).scrollTop()>300?btn.addClass("show"):btn.removeClass("show")})),btn.on("click",(function(o){o.preventDefault(),$("html, body").animate({scrollTop:0},"300")}));