apply firefly effect in a webpage
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
firefly.js
firefly.min.js

README.md

fireflyjs

apply firefly effect in a webpage

#Usage

Include the script in webpage

<script src="firefly.js"></script>

Create a canvas to draw the fireflies. Id is mandatory

<canvas id="fireflyCanvas"></canvas>

Apply some CSS as needed

#fireflyCanvas {
    margin: 0;
    padding: 0;
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
}

You are good to go. View a demo here at bibhuticoder.me