partikle

1.0.2 • Public • Published

partikle

A zero-dependency library for rendering floating particles

Example usage

<script src="https://unpkg.com/partikle"></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

189

Version

1.0.2

License

MIT

Unpacked Size

7.38 kB

Total Files

4

Last publish

Collaborators

  • lukaszkups