Add a mask image
I want reproduce this effect in html and css
https://www.youtube.com/watch?v=momF_D4odCM the problem is when I had he mask-image I should get this
https://www.youtube.com/watch?v=momF_D4odCM the problem is when I had he mask-image I should get this
Olivier Larose
YouTube
Build a Mask Cursor Effect With Nextjs and Framer Motion
A custom cursor with a mask hover effect revealing text underneath. Made with Nextjs and Framer Motion. Insipired by: https://minhpham.design/
Demo / Source code: https://blog.olivierlarose.com/tutorials/mask-cursor-effect
00:00 Intro
00:28 HTML and CSS
1:06 Creating the Mask
2:05 Getting the position of the mouse
3:19 Creating...
00:28 HTML and CSS
1:06 Creating the Mask
2:05 Getting the position of the mouse
3:19 Creating...
5 Replies
What I get is this one
the code css:
can I have some idea ? please
I didn't dive into your code or the video too much , but I would do it this way
I used grid to stack the 2 sections on top of eachother (.back, .front)
the .front has a mask-image (radial-gradient) with the following variables to control the size and positions
now you only have to update these property values with js
thanks fro your message but with your css who have twist my brain
I don t understand the variable of CSS