Package Exports
- bigmouse-particles
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bigmouse-particles) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Big Mouse Particles
A cheese plugin for Big Mouse
Do you like Gruyere Cheese ?
This provides beautiful particles visualizations for your data sources. Available axis are common properties as number of particles, size, color, and radius. Other possible properties coming soon are speed, brightness or distortion.
npm install bigmouse-particles
Example
Take a look at this working demo or check the example source code below.
// using npm (CommonJS)
import BigMouse form 'bigmouse';
import BigMouseParticles from 'bigmouse-particles';
Then use like this:
BigMouse.configure({
// Declare plugins to use
"plugins": {"particles": BigMouseParticles()},
// What elements you want to pick up, defaults to all
"selector": "a",
// Run every time an element is found and calls the plugin to render
"draw": (element, done) => {
switch(element.href){
case "...": done("particles", {size: 10, number: 50}); break;
default: done();
}
}
});
Author
Made with ♡ by Zuri Pabón
Unlicensed.