I have an animation that i am using Greensock for. When this animation is complete and when the user clicks on a button the animation will play in reverse. The issue i have is that i want the animation to play in reverse 3 times faster than when it was originally played. I am stumped on how to do this.
The current code i have works fine, i just need it to animate in reverse faster. Any help is greatly appreciated, thank you. Current code:
var tl = new TimelineMax();
var page4 = function(){
console.log('hello');
tl.staggerFrom("input", 0.5, {
marginLeft:"-300px",
opacity:0,
delay:0.5,
force3D:true
}, 0.2);
tl.staggerFrom("label", 0.5, {
opacity:0
}, 0.2);
tl.staggerFrom("#submit", 0.5, {
opacity:0
}, 0.2);
};
$('#submit').on('click', function(e){
e.preventDefault();
tl.reverse();
setTimeout(function(){
contact();
}, 3000 );
});
function contact(){
var msg = '<p>Thank you for your submission! Please give us 1 business day to reply back.</p>';
$('.title').append(msg).fadeIn();
}