Created
August 26, 2018 23:26
-
-
Save TrueSlu/21fc60c8e0c30ecc9e8f524669b25639 to your computer and use it in GitHub Desktop.
404 Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="particles-js"></div> | |
| <div data-tilt class="main">404 | |
| <div class="desc">Page not found.</div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| particlesJS("particles-js", { | |
| "particles": { | |
| "number": { | |
| "value": 88, | |
| "density": { | |
| "enable": true, | |
| "value_area": 700 | |
| } | |
| }, | |
| "color": { | |
| "value": ["#aa73ff", "#f8c210", "#83d238", "#33b1f8"] | |
| }, | |
| "shape": { | |
| "type": "circle", | |
| "stroke": { | |
| "width": 0, | |
| "color": "#000000" | |
| }, | |
| "polygon": { | |
| "nb_sides": 15 | |
| } | |
| }, | |
| "opacity": { | |
| "value": 0.5, | |
| "random": false, | |
| "anim": { | |
| "enable": false, | |
| "speed": 1.5, | |
| "opacity_min": 0.15, | |
| "sync": false | |
| } | |
| }, | |
| "size": { | |
| "value": 2.5, | |
| "random": false, | |
| "anim": { | |
| "enable": true, | |
| "speed": 2, | |
| "size_min": 0.15, | |
| "sync": false | |
| } | |
| }, | |
| "line_linked": { | |
| "enable": true, | |
| "distance": 110, | |
| "color": "#33b1f8", | |
| "opacity": 0.25, | |
| "width": 1 | |
| }, | |
| "move": { | |
| "enable": true, | |
| "speed": 1.6, | |
| "direction": "none", | |
| "random": false, | |
| "straight": false, | |
| "out_mode": "out", | |
| "bounce": false, | |
| "attract": { | |
| "enable": false, | |
| "rotateX": 600, | |
| "rotateY": 1200 | |
| } | |
| } | |
| }, | |
| "interactivity": { | |
| "detect_on": "canvas", | |
| "events": { | |
| "onhover": { | |
| "enable": false, | |
| "mode": "repulse" | |
| }, | |
| "onclick": { | |
| "enable": false, | |
| "mode": "push" | |
| }, | |
| "resize": true | |
| }, | |
| "modes": { | |
| "grab": { | |
| "distance": 400, | |
| "line_linked": { | |
| "opacity": 1 | |
| } | |
| }, | |
| "bubble": { | |
| "distance": 400, | |
| "size": 40, | |
| "duration": 2, | |
| "opacity": 8, | |
| "speed": 3 | |
| }, | |
| "repulse": { | |
| "distance": 200, | |
| "duration": 0.4 | |
| }, | |
| "push": { | |
| "particles_nb": 4 | |
| }, | |
| "remove": { | |
| "particles_nb": 2 | |
| } | |
| } | |
| }, | |
| "retina_detect": true | |
| }); | |
| var count_particles, stats, update; | |
| stats = new Stats; | |
| stats.setMode(0); | |
| stats.domElement.style.position = 'absolute'; | |
| stats.domElement.style.left = '0px'; | |
| stats.domElement.style.top = '0px'; | |
| document.body.appendChild(stats.domElement); | |
| count_particles = document.querySelector('.js-count-particles'); | |
| update = function() { | |
| stats.begin(); | |
| stats.end(); | |
| if (window.pJSDom[0].pJS.particles && window.pJSDom[0].pJS.particles.array) { | |
| count_particles.innerText = window.pJSDom[0].pJS.particles.array.length; | |
| } | |
| requestAnimationFrame(update); | |
| }; | |
| requestAnimationFrame(update);; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="https://cdnjs.cloudflare.com/ajax/libs/vanilla-tilt/1.4.1/vanilla-tilt.babel.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| background: #363A45; | |
| } | |
| .main { | |
| position: relative; | |
| text-align: center; | |
| padding: 230px 0; | |
| color: #ffffff; | |
| font-size: 250px; | |
| font-family: 'Indie Flower', cursive; | |
| animation: fadeIn 2s ease-in; | |
| } | |
| .desc { | |
| position: relative; | |
| text-align: center; | |
| color: white; | |
| font-size: 50px; | |
| font-family: 'Indie Flower', cursive; | |
| } | |
| #particles-js { | |
| position:absolute; | |
| width: 100%; | |
| height: 100%; | |
| background-color: #323840; | |
| background-image: url(""); | |
| background-repeat: no-repeat; | |
| background-size: cover; | |
| background-position: 50% 50%; } | |
| /* Keyframes */ | |
| @keyframes fadeIn { | |
| 0% { | |
| opacity: 0; | |
| } | |
| 100% { | |
| opacity: 1; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment