Flare.js


Basic Example

                    
const baseFlare = new FlareJS('.first', {});
                    
                  

Full Example

                    
const fullFlare = new FlareJS('.full', {
    glowRadius: 125,
    bgColor: '#ffaa00',
    flareColor: 'hsla(0, 60%, 50%, 0.8)',
    onDestroy: (self) => { prettyLog('onDestroy' + self) },
    onReset: (self) => { prettyLog('onReset' + self) },
    onStop: (self) => { prettyLog('onStop' + self) },
    onStart: (self) => { prettyLog('onStart' + self) },
});
                    
                  

Experimental Example

                    
const experimentalFlare = new FlareJs('.experimental', {
    glowRadius: 75,
    flareColor: '#ffaa0075',
    fluentFlares: true
});