loading...

Cursor Animation on MouseMove Using Javascript 🐴

atulcodex profile image Atul Prajapati ・1 min read

Hello coding people, hope you're doing well πŸ‘¨β€πŸ’». In this DEV post, you will learn how to make this amazing mouse follower, which is built with HTML, CSS, and JAVASCRIPT πŸ₯ πŸ€

NOTE: This is now trending element in Web and UI/UX

Discussion

markdown guide
 

Really nice post! but I'm curious about one thing, can't we add cursor.style.top and cursor.style.left separately instead of cursor.style.cssText? Also using CSS variables would be a great idea! :D

 

Yes brother, that's a great idea. We have to try it and you can play with this code here on codepen editor. So try your code and you will get relevant output, cheers 🍺

 

I made a project "Vanilla Fireworks" with pure Javascript. Are you interested?
youtube.com/watch?v=u-QaYZLKqHU

 

Yeah Why not 😎πŸ”₯