Update and rename wavestest.html to mousetest.html

This commit is contained in:
Voxel 2025-04-01 16:19:42 -04:00 committed by GitHub
parent 4a7f1accf3
commit af2ed32e2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 46 deletions

18
mousetest.html Normal file
View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>test</title>
<script type="module">
import { fairyDustCursor } from "https://unpkg.com/cursor-effects@latest/dist/esm.js";
new fairyDustCursor();
</script>
<script>
window.addEventListener("load", (event) => {
new cursoreffects.ghostCursor();
</script>
});
</body>
</html>

View file

@ -1,46 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>waves test</title>
<script src="https://cdn.jsdelivr.net/npm/vanta@0.5.0/dist/vanta.waves.min.js"></script>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
#vanta-waves {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
}
</style>
</head>
<body>
<div id="vanta-waves"></div>
<script>
window.onload = function() {
if (typeof VANTA !== 'undefined') {
VANTA.WAVES({
el: "#vanta-waves",
color: 0x5f77ff, // Customize the wave color
waveHeight: 30, // Customize wave height
shininess: 50, // Optional shininess
waveSpeed: 0.3, // Optional wave speed
});
} else {
console.error("Vanta.js is not loaded properly.");
}
}
</script>
</body>
</html>