Jump to content
Search Community

Mirror Effect In GSAP

schtew test
Moderator Tag

Recommended Posts

Hey all, I'm looking to create a mirroring effect at the end of my animation, such that the image would flip over the y axis by the end of the animation. Something like 

transform: scaleX(-1)

which triggers on every animation repetition.

 

In other words, consider this example: A shark image moves to the right, flips, goes back to the left, flips again, and repeats. Seems pretty simple but I don't know of any built in functionality with GSAP that can accomplish the desired. Any suggestions?

 

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...