Commit c039398d authored by tom's avatar tom

loader fixes

parent 97e56a1a
...@@ -2,14 +2,14 @@ import { Box, Text, useColorModeValue } from '@chakra-ui/react'; ...@@ -2,14 +2,14 @@ import { Box, Text, useColorModeValue } from '@chakra-ui/react';
import { keyframes } from '@chakra-ui/system'; import { keyframes } from '@chakra-ui/system';
import React from 'react'; import React from 'react';
const fade = keyframes` const runnerAnimation = keyframes`
0% { left: 0%; transform: translateX(-1%); } 0% { left: 0%; transform: translateX(-1%); }
100% { left: '100%'; transform: translateX(-99%); } 100% { left: '100%'; transform: translateX(-99%); }
`; `;
const ContentLoader = () => { const ContentLoader = () => {
return ( return (
<Box> <Box display="inline-block">
<Box <Box
width="100%" width="100%"
height="6px" height="6px"
...@@ -17,9 +17,9 @@ const ContentLoader = () => { ...@@ -17,9 +17,9 @@ const ContentLoader = () => {
_after={{ _after={{
content: `" "`, content: `" "`,
position: 'absolute', position: 'absolute',
width: '96px', width: '60px',
height: '6px', height: '6px',
animation: `${ fade } 0.6s ease-in-out infinite alternate`, animation: `${ runnerAnimation } 700ms ease-in-out infinite alternate`,
left: '100%', left: '100%',
top: 0, top: 0,
backgroundColor: useColorModeValue('blackAlpha.700', 'whiteAlpha.700'), backgroundColor: useColorModeValue('blackAlpha.700', 'whiteAlpha.700'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment