minimal-threads / index.html
cyvn's picture
make it only 1 html file
15d4964 verified
Raw History Blame Contribute Delete
1.91 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minimal Threads</title>
<style>
body {
margin: 0;
padding: 0;
background: black;
color: white;
font-family: sans-serif;
overflow: hidden;
}
#particles-js {
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
}
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
position: relative;
z-index: 1;
}
h1 {
font-weight: 400;
letter-spacing: 0.5em;
text-align: center;
}
</style>
</head>
<body>
<div id="particles-js"></div>
<div class="container">
<h1>COMING SOON</h1>
</div>
<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
particlesJS('particles-js', {
"particles": {
"number": { "value": 80, "density": { "enable": true, "value_area": 800 } },
"color": { "value": "#ffffff" },
"shape": { "type": "circle" },
"opacity": { "value": 0.5, "random": true },
"size": { "value": 3, "random": true },
"line_linked": { "enable": false },
"move": { "enable": true, "speed": 1, "direction": "none", "random": true, "straight": false }
},
"interactivity": { "detect_on": "canvas", "events": { "onhover": { "enable": false } } }
});
});
</script>
</body>
</html>