Crclrrr
Creates an SVG circular progress indicator inside the element matching a container element.
While loading it adds the loading
class to the element.
Install
npm install crclrrr
Example Setup
Javascript
; const element = document; // create an instance passing options (defaults)const crclrrr = element size: 40 border: 3 round: true bg: 'ghostwhite' progress: 'lightgreen' duration: 1500 baseClass: 'crclrrr' initial: 0 t; // Set the valuecrclrrrvalue = 23; // from 0 to 100 // Reset the valuecrclrrr; // resets to the initial valuecrclrrr; // resets to the specified value // Destroy the instancecrclrrr); // removes the SVG element // Listen for the complete event on the instance.// This event is fired when the animation has finished.// When reaching the minimun/maximum, only the complete// event is fired.crclrrr; // Listen for the complete event on the instance.// This event is fired when either the minimum (0) or the// maximum (100) is reached, depeding on the direction.crclrrr;