mirror of
https://github.com/milk-net/milk-net.github.io.git
synced 2025-04-19 17:43:42 -05:00
Create wavestest.html
This commit is contained in:
parent
5bcb70879e
commit
4a7f1accf3
1 changed files with 46 additions and 0 deletions
46
wavestest.html
Normal file
46
wavestest.html
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
<!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