Forum Discussion
JaneKing-391300
2 years agoCommunity Member
Expand and Contract a graphic?
Is this possible?
I have an illustration of a concept I want to convey and I'd like to make it contract and move to the right when my mentor comes out to explain it. I guess I'm accustomed to...
JaneKing-391300
2 years agoCommunity Member
Thanks!
It still does not work though.
Here is what I put in the JavaScript Editor:
var theObject = document.querySelector("[data-acc-text='space']");
gsap.to(theObject {scale: 0.66, x: 100vw, duration: 1.5, ease: "back"});
Attached is the screenshot of the error that Chrome gives me. I have no idea what this means! LOL. I just know that absolutely nothing happens
I have no idea where this ) should go.
Do you suppose I should figure out a trigger that is not, "when timeline starts"?
This is a lot of work for one little aesthetic but I want to learn how to do this type of thing with JavaScript in Articulate.
Off to work.
Appreciate your help!
JK