Bolt Loader
Loader with amazing lightning effect
Usage
import { BoltLoader } from "react-awesome-loaders";export const BoltLoaderComponent = () => {return (<><BoltLoaderclassName={"loaderbolt"}boltColor={"#6366F1"}backgroundBlurColor={"#E0E7FF"}/></>);};
Parameters
Below are the parameters for BoltLoader that you can customize.
| Option | Description | Type | Default |
|---|---|---|---|
| className | class attribute for loader | String | boltloader |
| background | Background color of the loader | String | transparent |
| boltColor | Color of the lightning svg path | String | #f2de10 |
| backgroundBlurColor | Color of the lightning shadow | String | #fff9bc |
| size | Size of the logo | String | 64px |
| desktopSize | Size of the logo on desktop | String | (empty) |
| mobileSize | Size of the logo on mobile | String | (empty) |
backgroundBlurColor attribute in this loader is blurrified inside the NPM package. So, even if you define very dark color, it will modify it to blurred shade of that color.
size,desktopSizeandmobileSizeattributes are defined relative to64pxfor all loaders and it doesn't mean the actual size would be64px. It means all the sizes defined will be w.r.t64px. If you pass128pxthen the size doubles. Also, note that if one of thedesktopSizeandmobileSizeis not defined, then it will use thesizeattribute. Value defined insizeattribute is assigned for mobile devices and loader automatically doubles the size on desktop device.
❤️ Inspired from codepen by Aaron Iker