@activecollab/components
Version:
ActiveCollab Components
8 lines • 1.09 kB
JavaScript
import styled, { keyframes } from "styled-components";
const moveLineAnimation = percentage => keyframes(["0%{transform:translateX(", ");}100%{transform:translateX(", ");}"], percentage === "25%" ? "-110%" : percentage === "50%" ? "-70%" : "-55%", percentage === "25%" ? "400%" : percentage === "50%" ? "220%" : "200%");
export const StyledLinearLoader = styled.div.withConfig({
displayName: "Styles__StyledLinearLoader",
componentId: "sc-x4ge7a-0"
})(["width:100%;height:", "px;position:relative;overflow:hidden;background-color:", ";border-radius:", "px;&::before{content:\"\";position:absolute;top:0;border-radius:", "px;left:0;width:", ";height:100%;background-color:", ";animation:", " ", "s infinite linear;}"], props => props.$height, props => props.$inactiveStrokeColor, props => props.$height, props => props.$height, props => props.$activeColorPercentage, props => props.$activeStrokeColor, props => moveLineAnimation(props.$activeColorPercentage), props => props.$animationDuration);
StyledLinearLoader.displayName = "StyledLinearLoader";
//# sourceMappingURL=Styles.js.map