Repository URL to install this package:
|
Version:
2.7.3 ▾
|
@skava/ui
/
src
/
components
/
features
/
Animations
/
Preloader
/
MaterialProgressIndeterminate
/
index.tsx
|
|---|
import { styled } from 'styleh-components'
const MaterialProgressIndeterminate = styled.div.attrs({
role: 'progressbar',
'aria-label': 'Loading',
'aria-hidden': true,
}) `
background-color: var(--color-light-grey);
display: flex;
height: 3px;
width: 100%;
margin: 0;
&:before {
height: 3px;
width: 100%;
margin: 0;
background-color: var(--color-blue);
content: '';
animation: running-progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes running-progress {
0% {
margin-left: 0px;
margin-right: 100%;
}
50% {
margin-left: 25%;
margin-right: 0%;
}
100% {
margin-left: 100%;
margin-right: 0;
}
}
`
export { MaterialProgressIndeterminate }
export default MaterialProgressIndeterminate