Closed weotch closed 10 years ago
FWIW, this does work:
$(this).tram()
.set({opacity:0, top:-5})
.add('opacity 400ms')
.add('top 400ms ease-out')
.wait(i*80)
.then(function() {
this.start({opacity: 1, top: 0})
.wait(500)
.then(function() { this.start({opacity: 0}); })
;
})
;
It's just a little gnarly
Hey dude, sorry for the delayed response. Your first block can be rewritten as:
$(this).tram()
.set({opacity:0, top:-3})
.add('opacity 400ms')
.add('top 400ms ease-out')
.wait(i*80)
.then({ opacity: 1, top: 0})
.wait(500)
.then({opacity: 0})
;
Well that's nice.
With recent commits, should my initial example work now as well? Or does using closures in then()
break it?
I'd like this to work:
I tried putting the second
wait()
inside of athen()
but that didn't work. What I'm seeing is the firstthen()
running but not the second.