Share Posted May 2, 2020 I want the same effect achieved here:https://www.davidwilliambaum.com/?fbclid=IwAR1LL0ufo4y4rVcFJc9oNKZQuLc2MxuNgG6gLwCz7EGZZEh7ux2QBD6yZTs So the images scales up and down according to the mouse position. How can I do this with gsap? Thanks! Link to comment Share on other sites More sharing options...
Share Posted May 2, 2020 Hello and welcome. Someone has already asked about how to create this effect in another thread: https://greensock.com/forums/topic/23242-canvas-image-gallery-with-mousemove-zoom-and-parallax/ Link to comment Share on other sites More sharing options...
Author Share Posted May 2, 2020 Cool, but a little more specific: is the duration of the tween for the image 0 and the scale property is just the distance from the mouse? Link to comment Share on other sites More sharing options...
Share Posted May 4, 2020 On 5/2/2020 at 4:13 PM, usr1931990 said: is the duration of the tween for the image 0 Depends how you want it to behave. On 5/2/2020 at 4:13 PM, usr1931990 said: the scale property is just the distance from the mouse? Yep, with a formula applied. Link to comment Share on other sites More sharing options...
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