A zero-dependency library for rendering floating particles
<script src="https://unpkg.com/partikle@latest"></script>
<div class="particle-canvas-wrapper" style="width: 100%; height: 100vh; position: relative; overflow: hidden;">
<div class="particle-canvas"></div>
</div>
<script>
partikle({
nodeId: 'particle-canvas',
particleColor: '#fefefe',
particlesAmount: 400
});
</script>
It is suggested that wrapper element that will contain the node with particles have following styling properties:
position: relative;
overflow: hidden;
Feel free to add your website here:
Author: @lukaszkups
License: MIT