I want to reproduce the "scale effect/disapear effect" that you can find in the messenger app from facebook when you touch/scroll throught your messages on mobile (i'm on android)
To explain the effect : when you touch the screen and start scrolling the local action scale down and disapear from the center, then when you stop touching and scrolling the same button show back again with the same animation - like a reverse.
When i touch the screen the animation starts, but my button rotate (i don't know why ) - is the problem coming from the matrix property used by greensock ?
also how can I proceed to make my animation completely done even if the user only touch the screen and don't scroll ? for now if you only touch the animation stop in the middle of the scale animation.
Hope you can help me, have a nice day
ps: Excuse me in advance for my english
var localAction = $('.local_action'),
tl = new TimelineLite();
//here i try to reproduce the effect
//transformOrigin: '50% 50%',
},ease: Elastic.easeOut.config(1.2, 0.5)});
//touchstart and touchend are from hammer.js