Skip to main content
Known Participant
Mar 26, 2024 9:01 PM UTC
Answered

Make a wipe in javascript that reveals a picture with a mask.

I've been trying to come up with a script to accomplish this task. I've got a script that can make an circle object move to follow the cursor. I've limited the movement from left to right, which is perfect. I've got a second script that creates a box in javascript that can mask a movie in Animate. Just can figure out how to get the two scripts to cooperate. I'm sure there is some Javascript magic that I just can't figure it out. Please help.

This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
Mar 27, 2024 4:19 PM UTC

This is fantastic! The answer is so clear a moment after someone points it out! 😉 Thanks so much kglad!!!


you're welcome.

12 replies

kglad
Community Expert
Community Expert
Mar 26, 2024 9:22 PM UTC

make your circle the mask that reveals the pic that you want to reveal.

Translate
slipperAuthor
Known Participant
Mar 26, 2024 10:41 PM UTC

Thanks for the response. The circle does mask, but will not do a wipe.

Translate
kglad
Community Expert
Community Expert
Mar 26, 2024 10:47 PM UTC

does the circle move when you swipe?

Translate