Created
July 11, 2018 04:46
-
-
Save cluzier/61093fa810551107cc28fef235aecc70 to your computer and use it in GitHub Desktop.
Form Concept
This file contains 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 class="container"> | |
<form action="action_page.php"> | |
<div class="row"> | |
<div class="col-25"> | |
<label for="fname">First Name</label> | |
</div> | |
<div class="col-75"> | |
<input type="text" id="fname" name="firstname" placeholder="Your name.."> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-25"> | |
<label for="lname">Last Name</label> | |
</div> | |
<div class="col-75"> | |
<input type="text" id="lname" name="lastname" placeholder="Your last name.."> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-25"> | |
<label for="email">Email</label> | |
</div> | |
<div class="col-75"> | |
<input type="text" id="lname" name="lastname" placeholder="Your last name.."> | |
</div> | |
</div> | |
<div class="row"> | |
<input type="submit" value="Submit"> | |
</div> | |
</form> | |
</div> | |
</div> |
This file contains 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 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://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> |
This file contains 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 { | |
margin:0; | |
font:normal 75% Arial, Helvetica, sans-serif; | |
} | |
#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%; } | |
.container { | |
position: relative; | |
margin: auto; | |
top: 200px; | |
padding: 20px; | |
height: 400px; | |
width: 200px; | |
background: #c6e2ff; | |
border-radius: 5px; | |
z-index: 1; | |
} | |
.row { | |
position: relative; | |
left: 25px; | |
top: 100px; | |
} | |
.col-25 { | |
position: relative; | |
left: 35px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment