Jump to content
Search Community

vanSk

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by vanSk

  1. On 8/16/2019 at 12:46 AM, ZachSaucier said:

    Hey vanSk,

     

    You should be able to do this by adding a delay after the staggerFromTo that you're using there, then adding another animate to the timeline to show the button, and then it will loop indefinitely since you set the repeat to -1 on the timeline.

     

    Is there a particular part of the process that you're running into trouble doing?

    Thank you, but I want run the title  after 1 second. I don't want to have delay in first animation. I want to have delay when the first stagger animation is complete, so I can show the button. 
    Here my code:
     

          
    let title = document.getElementsByClassName('title');
     
    let tll = new TimelineMax({ repeat: -1 });
     
    tll.staggerFromTo(title, 1, {
    x: -250,
    y: 300,
    }, {
    x: 0,
    stagger: 1,
    ease: Sine.easeInOut,
    delay: 3
    });
     
    tll.staggerFromTo('.btn', 1, {
    x: -250,
    y: 200,
    }, {
    x: 0,
    delay: 3,
    ease: Sine.easeInOut
    });
     
    tll.to(title, 1, {
    opacity: 0, ease: Linear.easeNone
    })
  2. Hello,

    I have a title in three words. Each word goes individually in a new line with a stagger.  So after that I want to hide this title and make visible button in the same position of the title. After a seconds I want return the first animation with the title and then the animation with the button and so on indefinitely. Thank you.
       

    let title = document.getElementsByClassName('title');
     
    let tll = new TimelineMax({ repeat: -1 });
     
    tll.staggerFromTo(title, 1, {
    x: -250,
    y: 300,
    }, {
    x: 0,
    stagger: 1,
    ease: Sine.easeInOut
    });
  3. Hello, It's hard for me to orient myself with the GSAP. I want to make coins animation in columns- similar to the picture, but with only three columns. How can I make the coin follow one by one and stack into a bundle, but with different heights. I prefer tweenmax option. Thank you.

    Monica-David2.jpg

×
×
  • Create New...