momo12 Posted September 16, 2022 Share Posted September 16, 2022 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 More sharing options...
Trapti Posted September 16, 2022 Share Posted September 16, 2022 Hello, I modified the pen. Hope you find this helpful. See the Pen NWMpqxr?editors=1010 by tripti1410 (@tripti1410) on CodePen Or as a reference use this remove the zooming part and add opacity 0 to the main image. See the Pen wWJoQg?editors=1010 by osublake (@osublake) on CodePen 3 Link to comment Share on other sites More sharing options...
momo12 Posted September 16, 2022 Author Share Posted September 16, 2022 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 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