0
Good afternoon,
I need to build an effect on a blog where when you hover over the pink div, it shows an image that’s at the bottom of it. But I need to show this image only in the area where the lock is.
The layout is this one. The part I need the image to appear is only in the top pink box.
Basically, the lock icon would follow the cursor, and as the mouse moves, it will show the image.
Could help me with references or a north of how to do?
I think you can do this with jquery or canvas, maybe even with a little css and js.
The whole structure is already assembled, I just really need to do this.
Thank you.
It’s like a "slushee"?
– andrepaulo
puts your code man
– MagicHat
That andrepaulo, more or less that
– haRdy
I’ll be editing, Magichat
– haRdy
The difference is that the scratch card occurs at the click and "erases" the box that is on top. In that case I just want to show the contents in the lock area
– haRdy
puts the code of your "cursor" (lock) for us.
– andrepaulo
Code http://codepen.io/leoamrl/pen/KWVmvZ
– haRdy
I was researching here man, I think maybe with the property
clip-path
css to do, but in IE it doesn’t work, for example. :(– andrepaulo
I was able to do it, I changed it. Call: http://lancamentos.euroamericaconstrutora.com.br/papodecasa/
– haRdy
put the answer there for us to see and stay for the next people with the same doubt, You can answer your own question!
– andrepaulo