Jump to content
Search Community

codek

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by codek

  1. Hi, I have a problem to understand the "set()" method. This is my html code (extract):

     

    <svg....>
      <path id="nube" opacity="0" ....</path>
    </svg>

     

    and this my js ("nube" is a reference to id="nube" in Angular 5):

     

    let tl = new TimelineMax({ delay: 3, repeat: -1 })
    
    tl.set(nube, { opacity: 1 })
    tl.to(nube, 9, { y: '-=30px',x: '+=17px', scale: 2 ,opacity: 0, ease: Linear.easeNone, repeat: -1 }, '')

     

    The problem is that the element "nube" is shown on start but I think that it should be hidden until 3s of delay. Why is showed on start? How can I do the element is shown when "tl" is started (with 3s delay)?

     

    Thanks in advance.

×
×
  • Create New...