Skip to main content
Known Participant
March 26, 2024
Answered

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

  • March 26, 2024
  • 1 reply
  • 825 views

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 has been closed for replies.
Correct answer kglad

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


you're welcome.

1 reply

kglad
Brainiac
March 26, 2024

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

slipperAuthor
Known Participant
March 26, 2024

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

kglad
Brainiac
March 26, 2024

does the circle move when you swipe?