DEV Community

magnet-cursor

sandeshsapkota on January 25, 2020

Inspired from this website.

Collapse
 
vlasin98 profile image
Vlasin98

Hi Sandeshsapkota!

I really appreciate your pen and the fact that you took the time to share it, really nice work.

One thing I would like to mention/ask you. From what I see you hidden the overflow on the pen, but when this gets on an actual page, the moment someone scrolls the custom cursor gets offset from the real one. Any idea how I can fix this issue?

I would like to thank you once again for the work. Let me know further.

Collapse
 
sandeshsapkota profile image
sandeshsapkota

Hello @vlasin98 !

thank you for pointing out. the only reason the custom-cursor was not moving along with the real-cursor was, I had positioned the cursor with absolute . same issue was with the like button.

I have fixed this and have updated the pen.

let me know if I missed anything.
thanks

Collapse
 
vlasin98 profile image
Vlasin98

Amazing. I was scrubbing through it for hours. It is really appreciated.

Thank you

Thread Thread
 
sandeshsapkota profile image
sandeshsapkota

glad to help you !

Thread Thread
 
vlasin98 profile image
Vlasin98

Further down the line, if you are kind enough, how can I make it work if I want multiple items to have the magnet effect?

Thank you from the bottom of my heart

Thread Thread
 
sandeshsapkota profile image
sandeshsapkota

Oh ! want to do that too ? that sounds great !
well, let me give some time to figure out. having a little bit busy time. will come up with the solution or question :)