adelapuentep Posted July 9, 2024 Posted July 9, 2024 Hello GSAP community, I'm looking forward to create this type of interaction (see video attach) but in words: The screen is divided in halfs, when cursor is over one half it grows up to 75% and the other half shrinks to 25% and viceversa. When cursor is out of the viewport, everything gets back to "normal" (50%/50%). Sorry I'm not able to post a CodePen URL but if anyone can help, it will be very much appreciated. gsap-grow-shrink-on-hover.mp4
Rodrigo Posted July 9, 2024 Posted July 9, 2024 Hi @adelapuentep and welcome to the GSAP Forums! Maybe this demo by @Carl can give you a solid starting point: See the Pen YzGpXWO by snorkltv (@snorkltv) on CodePen. Hopefully this helps. Happy Tweening!
adelapuentep Posted July 10, 2024 Author Posted July 10, 2024 It's a great starting point @Rodrigo. Thank you very much.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now