mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-11 21:10:34 -06:00
1 line
1.3 KiB
JavaScript
1 line
1.3 KiB
JavaScript
$(function(){$(".wp1").waypoint(function(){$(".wp1").addClass("animated fadeIn")},{offset:"75%"}),$(".wp2").waypoint(function(){$(".wp2").addClass("animated fadeIn")},{offset:"50%"}),$(".wp3").waypoint(function(){$(".wp3").addClass("animated fadeIn"),$(".skills-bar-container").addClass("animated fadeIn"),$(".wp3-1").addClass("progress1-delay"),$(".wp3-2").addClass("progress2-delay"),$(".wp3-3").addClass("progress3-delay"),$(".wp3-4").addClass("progress4-delay"),$(".wp3-5").addClass("progress5-delay")},{offset:"50%"}),$(".wp4").waypoint(function(){$(".wp4").addClass("animated bounceIn")},{offset:"75%"}),$(".wp5").waypoint(function(){$(".wp5").addClass("animated fadeIn")},{offset:"75%"}),$(".wp6").waypoint(function(){$(".wp6").addClass("animated bounceInDown")},{offset:"75%"}),$(window).scroll(function(){$(".navbar").offset().top>50?$(".navbar-fixed-top").addClass("top-nav-collapse"):$(".navbar-fixed-top").removeClass("top-nav-collapse")}),$("a.page-scroll").bind("click",function(a){var o=$(this);$("html, body").stop().animate({scrollTop:$(o.attr("href")).offset().top},1500,"easeInOutExpo"),a.preventDefault()}),$(".navbar-collapse ul li a").click(function(){$(".navbar-toggle:visible").click()}),$("#to-top").mouseover(function(){$("#to-top-copy").animate({opacity:"1"},"slow")}),$("#to-top").mouseout(function(){$("#to-top-copy").animate({opacity:"0"},"slow")})}); |