other way how to toggle 2 function in jQuery
I want to toggle this tweenmax when click TweenMax.to(con, 1, {height:
'200px', ease:Bounce.easeOut}); here exactly what I want:
function One() {
TweenMax.to(con, 1, {height: '200px', ease:Bounce.easeOut});
}
function Two() {
TweenMax.from(con, 1, {height: '200px', ease:Bounce.easeOut});
}
$('.click').toggle(One, Two);
con is a div that will animation the height when click is this posible ?
please help
No comments:
Post a Comment