FlipFlop Loader

Loader with shaking O effect

Usage

FLP...
import { FlipFlopLoader } from "react-awesome-loaders";
export const FlipFlopLoaderComponent = () => {
return (
<>
<FlipFlopLoader desktopSize={"128px"} mobileSize={"128px"} />
</>
);
};

Parameters

Below are the parameters for BoxesLoader that you can customize.

OptionDescriptionTypeDefault
classNameclass attribute for loaderStringflipfloploader
textColorColor of the textString#4F46E5
textBeforeRingText before O characterStringFL
textAfterRingText after O characterStringP...
ringColorColor of the ring (O)String#4F46E5
ringShinessAmount of shiness ring should haveNumber20
ringOpacityOpacity of the ringNumber0.96
ringTransparencyWhether the ring should be transparentBooltrue
ringLightColorColor of the light dropping on the ringString#FFFFFF
ringLightIntensityIntensity of light dropping on the ringNumber0
ringAmbientLightColorColor of ambient lightString#eef4ff
sizeSize of the logoString64px
desktopSizeSize of the logo on desktopString(empty)
mobileSizeSize of the logo on mobileString(empty)

Some of the color parameters like ringShiness, ringLightColor, ringLightIntensity, ringAmbientLightColor are added for this loader since it is created in 3D using three.js and the resultant loader is the 3D model.

size, desktopSize and mobileSize attributes are defined relative to 64px for all loaders and it doesn't mean the actual size would be 64px. It means all the sizes defined will be w.r.t 64px. If you pass 128px then the size doubles. Also, note that if one of the desktopSize and mobileSize is not defined, then it will use the size attribute. Value defined in size attribute is assigned for mobile devices and loader automatically doubles the size on desktop device.

❤️ Inspired from codepen by Aaron Iker