$(function(){var n=$(window),r=n.height(),t=$("[data-explore-nav]"),i;n.on("resize",function(){r=n.height()});n.on("scroll",function(){window.requestAnimationFrame(function(){$(window).scrollTop()+r>=$(document).height()-100?t.hasClass("active")||t.addClass("active"):t.hasClass("active")&&t.removeClass("active")})});i=new TimelineMax;$("[data-explore-trigger]").on("click",function(n){n.preventDefault();var t=$("[data-explore-drawer]").find("[data-explore-drawer-inner]").outerHeight();$("[data-explore-drawer]").hasClass("open")?(i.fromTo($("[data-explore-drawer]"),.35,{height:t,opacity:1},{height:0,opacity:0}),$("[data-explore-drawer]").removeClass("open")):(i.fromTo($("[data-explore-drawer]"),.35,{height:0,opacity:0},{height:t,opacity:1}),$("[data-explore-drawer]").addClass("open"))})})