const SetupHome = () => { TweenMax.defaultEase = Sine.easeInOut; let tl = new TimelineMax({repeat:-1,yoyo:true}); tl.fromTo('.area._book',1,{y:-5},{y:5}); $('.wrap._home').slick({ slidesToScroll : 1, slidesToShow : 5, infinite : true, arrows : false }); $('.wrap._book').hover( function() { TweenMax.to(this,0.1,{ y : -20 }); }, function() { TweenMax.to(this,0.1,{ y : 0 }); } ); } $(SetupHome);