fancy-webgl-sparkles
Version:
PIXI.js library to add glitter particles with bokeh and special effects to your DOM elements
35 lines (28 loc) • 891 B
Markdown
## What is Fancy WebGl Sparkles?
It's a performance first frontend Javascript library powered by **pixi.js** that allows you to add dynamic glowing sparkles, stars and bokeh to your DOM elements.
Check the [Examples](/usage/examples) for a live preview of the effect.
## Features
- WebGL rendering
- Fancy Glow Shaders
- No coding required, just plug and add markup to your html elements
- No JQuery dependency
- Three type of particles available
- Bokeh
- Sparkles
- Stars
- Able to simulate tons of particles
- Fast on mobile
- Customize your own colours
- Built in events
- Able to render sparkles outside of elements with custom boundaries
- Sizing options and multipliers
## Installation
### Npm
```
npm i fancy-webgl-sparkles
```
### Web
Add before the closing body tag
``` html
<script src="../dist/fancy-webgl-sparkles.js"></script>
```