dshongphuc / magic-mouse-js

A lightweight javascript library to create some amazing effects for the mouse (cursor) on your website - MagicMouse.js : https://magicmousejs.web.app/
MIT License
389 stars 60 forks source link

Uncaught ReferenceError: magicMouse is not defined #17

Closed cens6r closed 3 years ago

cens6r commented 3 years ago

Hey, Hello I am currently creating a website and when I found your library I was very happy because I had a hard time making custom cursors. Anyways, I am using the CDN server in correct positions, and copy pasted your code inside index.html. But it says that magicMouse isn't defined for some reason. There are no other errors? How can I fix this?

dshongphuc commented 3 years ago

Hi @aresociety , you'll need to at least show me your code so I can understand what happen.

Thanks

cens6r commented 3 years ago

Ok, Here is the code: view-source:https://arlytical.neocities.org/index.html

dshongphuc commented 3 years ago

@aresociety Checked your code, you will need to move the configuration script to put it bellow the src script to make it work. I think I should update the readme for this

cens6r commented 3 years ago

thanks! ill try it out right now

cens6r commented 3 years ago

It's working now! Thanks for telling me and hope you get even more famous!