Thanks for the info, sure, I've uploaded a pen of one of the CSS transition effects I'm trying to duplicate using Greensock. When you move the mouse over the image, notice that the panels slide in first, then the caption, while when you move the mouse out, all 3 components withdraw at the same time.
Here is a snippet of my Greensock code that reproduces the above effect. It works just fine, except as mentioned I can't get the panels and the caption to animate/withdraw at the same time when the mouse moves out, instead of seqentually when the mouse rolls over it. In CSS3 this is easy to do, since transition-delay can be independantly added to either the :hover: or default state of an element to apply the delay only to that particular state, not both. Here is the snippet of relevant code I have that reproduces (almost) the CSS effect:
var $veilA = $veils.eq(0)
var $veilB = $veils.eq(1)
TweenLite.set($veilA, {y:'-100%', visibility:'visible'})
TweenLite.set($veilB, {y:'100%', visibility:'visible'})
TweenLite.set($figcaption, {x:'-100%', y:'-50%', top:'50%', height:'auto', opacity:1}) // center caption vertically and set height to auto
timeline.add( TweenLite.to($veilA, 1, {y:'-50%'}) )
timeline.add( TweenLite.to($veilB, 1, {y:'50%'}), "-=1" ) // animate 2nd veil at the same time as 1st veil above
timeline.add( TweenLite.to($figcaption, 1, {x:'0%', zIndex:101}))
$figure.on('mouseenter', function(e){
timeline.play()
})
$figure.on('mouseleave', function(){
timeline.reverse()
})
I think the bottom line is, I need a way to easily modify the default timeline play sequence of tweens when reverse() is called.
Thanks,