Sha256: 893f4f35d3ab21db3ab0ab265547d3b9df2f08230921a0b164fc4531d1e67c37

Contents?: true

Size: 546 Bytes

Versions: 4

Compression:

Stored size: 546 Bytes

Contents

const SetupHome = () => {

  if (body.hasClass('setup-library') &&
      body.hasClass('layout-single')) {

    let tl = gsap.timeline({repeat:-1,yoyo:true,ease:"sine.inOut"});

    tl.fromTo(".area._book",{y:-5},{duration:1,y:5});

    $('.wrap._home').slick({
      slidesToScroll : 1,
      slidesToShow : 5,
      infinite : true,
      arrows : false
    });

    $('.wrap._book').hover(
    function() {
      gsap.to(this,{duration:0.1,y:-20});
    },
    function() {
      gsap.to(this,{duration:0.1,y:0});
    });
  }
}

$(SetupHome);

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
futuro-0.3.9 assets/js/footer/custom/SetupHome.js
futuro-0.3.8 assets/js/footer/custom/SetupHome.js
futuro-0.3.7 assets/js/footer/custom/SetupHome.js
futuro-0.3.6 assets/js/custom/SetupHome.js