Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import { styled } from 'styleh-components'

const MaterialCircleLoaderWrapper = styled.div`
  position: relative;
  width: 100px;

  svg {
    animation: rotate 2s linear infinite;
    height: 100%;
    transform-origin: center center;
    width: 100%;

    @keyframes rotate {
      100% {
        transform: rotate(360deg);
      }
    }
  }
`
const MaterialCircleElement = styled.circle`
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
  stroke-linecap: round;

  @keyframes dash {
    0% {
      stroke-dasharray: 1, 200;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 89, 200;
      stroke-dashoffset: -35px;
    }
    100% {
      stroke-dasharray: 89, 200;
      stroke-dashoffset: -124px;
    }
  }
  @keyframes color {
    100%,
    0% {
      stroke: #009944;
    }
    40% {
      stroke: var(--color-blue);
    }
    66% {
      stroke: var(--color-light-grey);
    }
    80%,
    90% {
      stroke: #ea2227;
  }
`

export { MaterialCircleLoaderWrapper, MaterialCircleElement }