A JavaScript module that adds responsive, stylized speckles to any element; with no dependencies.
npm install speckle-js
Import the module.
// Import the module using ES6.
import Speckle from 'speckle-js';
// Import the module using CommonJS.
const Speckle = require('speckle-js');
Use the constructor by passing a valid HTML element as the first argument, and an options object of key: value
pairs as the second argument.
new Speckle(element, options);
Visit the documentation and examples for all options, methods, and how to use them.