Jump to content
Search Community

mikel last won the day on March 14 2022

mikel had the most liked content!

mikel

Moderators
  • Posts

    2,157
  • Joined

  • Last visited

  • Days Won

    71

Posts posted by mikel

  1. Hey @shilpa_gz,

     

    It's really not easy to understand your intentions exactly: What should happen, when and how?

     

    Here's an example:
    - the first text fades in shortly after the scrolling process begins (CSS: h1 is visibility:hidden; )
    - special version scrollUp: if (self.direction === -1 && self.progress > 0.85). Fast rewind only from the last part.
    - like fading the texts, you could also show the pictures of the snowball

     

    See the Pen zYPRNOj?editors=0110 by mikeK (@mikeK) on CodePen

     

    Happy tweening ...

    Mikel

    • Like 1
  2. Hey, Superfein,

     

    from the DOCS ScrollTrigger:
    
    Percentages and pixels are always relative to the top/left of the element/viewport. 
    You can also define a single relative value like "+=300" 
    which means "300px beyond where the start is", 
    or "+=100%" means "the height of the scroller beyond where the start is". 
    "max" is a special keyword indicating the maximum scroll position.

     

    What exactly is unclear? 

    • Like 1
  3. Hey YAYA,

     

    
    //give the timeline and child tweens their own id. Here an example:
    
    var tl = gsap.timeline({id: "timeline"})
    tl.to(".orange", {duration: 1, x: 700, id: "orange"})
      .to(".green", {duration: 2, x: 700, ease: "bounce", id: "green"});
    
    // Now each id shows up in the animations menu "Global Timeline" as popup.

    Does this help you?

     

    Mikel

    • Like 3
×
×
  • Create New...