const Animate={init:function(){var t=function(t,a){for(var n=a.split(/\s+/),o=0;o<n.length;o++)t.hasClass(n[o])||t.addClass(n[o])},a=function(t,a){for(var n=a.split(/\s+/),o=0;o<n.length;o++)t.hasClass(n[o])&&t.removeClass(n[o])},n=function(){var a=$(window).scrollTop(),n=$(window).height(),o=a+.8*n;$("[data-animate-scroll]").each(function(a,n){$(n).offset().top<o&&t($(n),$(n).attr("data-animate-scroll"))})};$(window).scroll(n),$("[data-animate-hover]").hover(function(){t($(this),$(this).attr("data-animate-hover"))},function(){a($(this),$(this).attr("data-animate-hover"))}),n()}};module.exports=Animate;