Jump to content
Search Community

Use GSAP for mouse reveal

momo12 test
Moderator Tag

Recommended Posts

Hello guys, I was thinking to have a custom mouse but it does something more: It reveals the content of another div block beneath the main div. As you can see, the image is moving with the mask. But I just want the mask moves, not the image! Best example: https://www.castoretpollux.com/agence

 

 

See the Pen NWMbZKz by talewoy290 (@talewoy290) on CodePen

Link to comment
Share on other sites

57 minutes ago, Trapti said:

Hello,

I modified the pen. Hope you find this helpful.

 

 

 

Or as a reference use this remove the zooming part and add opacity 0 to the main image.
 

  

 

Thanks for sending this over. I'm not sure how this even works :( Could you please make an easier example like my codepen? So, I can learn that? I'm not good at coding and just learning.

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...