Forum Discussion
MathNotermans-9
4 years agoCommunity Member
GSAP, x-y transformation in the Modern Player
As some other users in other posts commented when resizing/scaling your browser a Storyline using GSAP for animation will loose its proper positioning and that ain't fun. Allthough i had that fixed ...
larryvanwave-ff
2 years agoCommunity Member
I have a project that I am working on that the buttons work for Desktop use, but the mobile use - mobile Chrome - the button doesn't work. Is there an extra listener or code that I need to apply?
//== code below ===
submitButton.forEach( item => {
item.addEventListener('mouseover', OverSub_01 );
item.addEventListener('mouseout', OutSub_01 );
item.addEventListener('click', PressSub_01 );
});
function OverSub_01 ( event ) {
gsap.to(submitButton, .5 ,{alpha:.6, ease: "back.out(1)"});
}
function OutSub_01 ( event ) {
gsap.to(submitButton, 1 ,{alpha:1, ease: "back.out(1)"});
}
function PressSub_01 ( event ) {
gsap.to(CorrectAnswer, .5 ,{x:"-2%", ease: "back.out(4)"});
}