diff --git a/src/components/Loader/index.js b/src/components/Loader/index.js index 0767765b..3d6e839a 100644 --- a/src/components/Loader/index.js +++ b/src/components/Loader/index.js @@ -31,7 +31,7 @@ const CircleWrapper = styled.circle` ${props => props.isPath && css` stroke-dasharray: 1, 200; stroke-dashoffset: 0; - animation: ${DASH} 1.5s ease-in-out infinite, ${GREEN_COLOR} 6s ease-in-out infinite; + animation: ${DASH} 1.5s ease-in-out infinite, ${props.animationColor || GREEN_COLOR} 6s ease-in-out infinite; stroke-linecap: round; `}; `; @@ -42,12 +42,13 @@ const StyledParagraph = styled(Paragraph)` `; const Loader = ({ - className, text, isWhiteText = false, isSmallText, size = 100, + className, text, isWhiteText = false, isSmallText, size = 100, animationColor, }) => ( {text} {isLoading && ( - + )} {icon && ( diff --git a/src/config/animations.js b/src/config/animations.js index 866af919..e23ba206 100644 --- a/src/config/animations.js +++ b/src/config/animations.js @@ -49,6 +49,21 @@ export const GREEN_COLOR = keyframes` } `; +export const BLUE_COLOR = keyframes` + 100%, 0% { + stroke: ${colors.WHITE}; + } + 40% { + stroke: ${colors.BLUE_SECONDARY}; + } + 66% { + stroke: ${colors.WHITE}; + } + 80%, 90% { + stroke: ${colors.WHITE}; + } +`; + export const PULSATE = keyframes` 0%, 100% { opacity: 0.5;