Jump to content
Search Community

Flor Lapetina

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Flor Lapetina

  1. Here I found the real problem, is the % in the duration of the scroll. I don't know now how to replace it but later I will see. If you have any idea it will be great. Thanks. 

     

      // Cards Parallax
        var tl_parallax = new TimelineLite()
        .from( card.querySelector('.member-card-img'),  1, {x: (oddFlag%2? "5%":"-5%"), ease: Linear.easeOut}, 0);
        // Cards Parallax Scene
        var sceneCardsParallax = new ScrollMagic.Scene({
            triggerElement: card,
            duration: "70%",
            tweenChanges: true
        })
    
        
        .setTween( tl_parallax )

     

  2. Hey, thank you very much, now I see that this is the problem, but what happens is that the transform rule comes from a js that uses gsap (I didn't even do it because it uses old js methods). Here in codepen you can see the js, I tried to load the cdn but for some reason they are wrong and I cannot reproduce the animation.

    Thank you anyway.

     

    See the Pen YzqqKzW by florencia-lapetina (@florencia-lapetina) on CodePen

×
×
  • Create New...