Jump to content
Search Community

IslandScott

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by IslandScott

  1. Hi,

     

    I'm using smooth scroller and I'm trying to pin certain elements like my header. I have managed to do it but is there a way to pin them on top of everything else, in the same way as css 'fixed' ? because at the moment when i do it each pinned element still takes up area on the content below. If that makes sense.

     

    Thanks,

     

    Scott.

     

  2. Hi,

     

    I have the following which runs an animation for certain elements but it does it for all elements instead of just the one being hovered. Any way to change it so it only applies to the current element thats being hovered, rather than all of them at once ?

     

    Thanks,

     

    Scott.

    // Animate Image Flipper
    (function($) {
      "use strict";
    
        var tl = gsap.timeline();
        tl.to(".top-image", {y: '-100%', duration: 0.4, ease: 'power3.inOut' });
        var tl2 = gsap.timeline();
        tl2.to(".bottom-image", {y: '-100%', duration: 0.4, ease: 'power3.inOut'});
    
        tl.pause();
        tl2.pause();
    
      $(".image-flipper").mouseenter(function(){
        tl.play();
        tl2.play();
      })
    
      $(".image-flipper").mouseleave(function(){
        tl.reverse();
        tl2.reverse();
      })
    
    
      })(jQuery);

     

  3. Hi,

     

    I have the following simple stagger but is there anyway to do it in reverse, so its starts with the last div and works its way back to the start ?

     

    gsap.to(".product", {opacity:0, scale:0.95, stagger: 0.1});

     

    Many thanks.

×
×
  • Create New...