Jump to content
Search Community

Maddy_007

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Maddy_007

  1. 19 minutes ago, mvaneijgen said:

    You want to create a timeline for that. Right now you're using just one gsap tween to create your animation, I recommend always making a timeline instead, only when you are a 100% certain you only ever going to use one animation than gsap.to() is fine to use. 

     

    Take a look at the docs over at "Advanced example" https://greensock.com/docs/v3/Plugins/ScrollTrigger and just add another tween to your timeline that makes your card opacity: 0.5 You can play with the position parameter to have it start a moment before it reaches the end 

    Alright, Actually I need to deliver this by tonight, That's why I am so much worried. Can you please show me in the codepen please. @mvaneijgen
    Requirement are almost done but just need to add the opacity.

  2. 36 minutes ago, mvaneijgen said:

    Hey @Maddy_007 have you seen the end: property? You could set this to something like 0.9 to have it stop when it has traveled 90% of the line or some other value that suits your need. See the docs for more info https://greensock.com/docs/v3/Plugins/MotionPathPlugin

    Thankyou so much, One thing more what if I need to add the opacity to 0.5 while the card is reaching to end. How can I obtain that? Thanks in advance

×
×
  • Create New...