Moving from AS3 to JS - how can I recreate this functionality (as accomplished in AS3) with GSAP? (Button is an image).
btn.addEventListener(MouseEvent.MOUSE_OVER, over);
btn.addEventListener(MouseEvent.MOUSE_OUT, out);
function over(e:MouseEvent):void {
TweenLite.to(btn, 1, {alpha: 1});
}
function out(e:MouseEvent):void {
TweenLite.to(btn, 1, {alpha: .6});
}
Thanks guys