partikle

1.0.7 • Public • Published

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

Package Sidebar

Install

npm i partikle

Weekly Downloads

30

Version

1.0.7

License

MIT

Unpacked Size

9.59 kB

Total Files

5

Last publish

Collaborators

  • lukaszkups