diff --git a/Cursor Animation/Script.js b/Cursor Animation/Script.js new file mode 100644 index 0000000..ec7f4e9 --- /dev/null +++ b/Cursor Animation/Script.js @@ -0,0 +1,11 @@ +var cursor = document.getElementById("Cursor"); + +document.onmousemove = function(e){ + cursor.style.left = (e.pageX-23)+"px"; + cursor.style.top = (e.pageY-23)+"px"; + cursor.style.background = "darkslateblue"; + cursor.style.display = "block"; +} +document.onclick = function(e){ + cursor.style.background = "white"; +} \ No newline at end of file diff --git a/Cursor Animation/back.jpg b/Cursor Animation/back.jpg new file mode 100644 index 0000000..fa36fab Binary files /dev/null and b/Cursor Animation/back.jpg differ diff --git a/Cursor Animation/index.html b/Cursor Animation/index.html new file mode 100644 index 0000000..93ebf57 --- /dev/null +++ b/Cursor Animation/index.html @@ -0,0 +1,38 @@ + + + + + + + + Cursor Animation + + + +
+ + + + + \ No newline at end of file