Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
AaryaShrivaastava committed Nov 12, 2024
1 parent 6388226 commit 52ae49f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,10 @@ <h3>Saarthi</h3>

// Update the coordinates when the mouse moves
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
coords.x = e.clientX;
coords.y = e.clientY + window.scrollY; // Adjust y position based on scroll
});


// Easing function to make the animation smoother
function lerp(start, end, t) {
Expand Down

0 comments on commit 52ae49f

Please sign in to comment.