Jump to content
GreenSock

charlitos

Members
  • Posts

    1
  • Joined

  • Last visited

Reputation

0 Newbie
  1. Hi, this is my first post as I just started to play with Greensock and so far it has been really useful Im just having a hard time trying to figure out a couple of things. Iets say I add an element to my timeline var tl = new TimelineMax(); tl.to($("#element"), 8, {css:{left : 100}, onUpdate:detectSomethingChanged}); This element is positioned through CSS in a default location then it starts to move. Now whats happening is that my callback function detects if the mouse is on top of my element, if so, it fades it away : tl.to($("#element"), 2, {css:{opacity : 0}, overwrite:"all"}); and as soon the fading stops I want the animation to start all over again from 0 when I do restart but this only restarts the fading effect not the entire clip since I used overwrite:"all". How should I do this exactly?
×