partikle
v1.0.7
Published
A zero-dependency library for rendering floating particles
Downloads
370
Maintainers
Readme
partikle
A zero-dependency library for rendering floating particles
Example usage
<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>
Prerequisites
It is suggested that wrapper element that will contain the node with particles have following styling properties:
position: relative;
overflow: hidden;
Showcase
Feel free to add your website here:
Author: @lukaszkups
License: MIT