mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-19 17:43:42 -05:00
Update and rename wavestest.html to mousetest.html
This commit is contained in:
parent
4a7f1accf3
commit
af2ed32e2b
2 changed files with 18 additions and 46 deletions
18
mousetest.html
Normal file
18
mousetest.html
Normal 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>
|
|
@ -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>
|
|
Loading…
Add table
Reference in a new issue