Skip to content

A zero-dependency library for rendering floating particles

License

Notifications You must be signed in to change notification settings

lukaszkups/partikle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A zero-dependency library for rendering floating particles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published