diff options
-rw-r--r-- | index.html | 18 | ||||
-rw-r--r-- | script.js | 105 | ||||
-rw-r--r-- | styles.css | 15 |
3 files changed, 138 insertions, 0 deletions
@@ -0,0 +1,18 @@ +<!doctype html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> + <meta http-equiv="X-UA-Compatible" content="ie=edge"> + <link rel="stylesheet" href="styles.css"> + <title>404</title> +</head> +<body> + +<div id="starBackground" class="starBackground"></div> + +<script src="https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js"></script> +<script src="script.js"></script> +</body> +</html>
\ No newline at end of file @@ -0,0 +1,105 @@ +particlesJS("starBackground", { + "particles": { + "number": { + "value": 355, + "density": { + "enable": true, + "value_area": 789.1476416322727 + } + }, + "color": { + "value": "#ffffff" + }, + "shape": { + "type": "circle", + "stroke": { + "width": 0, + "color": "#000000" + }, + "polygon": { + "nb_sides": 5 + } + }, + "opacity": { + "value": 0.48927153781200905, + "random": false, + "anim": { + "enable": true, + "speed": 0.2, + "opacity_min": 0, + "sync": false + } + }, + "size": { + "value": 2, + "random": true, + "anim": { + "enable": true, + "speed": 2, + "size_min": 0, + "sync": false + } + }, + "line_linked": { + "enable": false, + "distance": 150, + "color": "#ffffff", + "opacity": 0.4, + "width": 1 + }, + "move": { + "enable": true, + "speed": 0.2, + "direction": "none", + "random": true, + "straight": false, + "out_mode": "out", + "bounce": false, + "attract": { + "enable": false, + "rotateX": 600, + "rotateY": 1200 + } + } + }, + "interactivity": { + "detect_on": "canvas", + "events": { + "onhover": { + "enable": true, + "mode": "bubble" + }, + "onclick": { + "enable": true, + "mode": "push" + }, + "resize": true + }, + "modes": { + "grab": { + "distance": 400, + "line_linked": { + "opacity": 1 + } + }, + "bubble": { + "distance": 83.91608391608392, + "size": 1, + "duration": 3, + "opacity": 1, + "speed": 3 + }, + "repulse": { + "distance": 200, + "duration": 0.4 + }, + "push": { + "particles_nb": 4 + }, + "remove": { + "particles_nb": 2 + } + } + }, + "retina_detect": true +});
\ No newline at end of file @@ -0,0 +1,15 @@ +body { + margin: 0; + background-color: #0c0c1c; +} + +canvas { + display: block; + vertical-align: bottom; +} + +.starBackground { + position: absolute; + width: 100%; + height: 100%; +}
\ No newline at end of file |