Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1365 | Rev 1771 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

import React from 'react'
import { Box, styled } from '@mui/material'

const EllipsisContainer = styled(Box)`
  margin: 0 auto 0;
  width: 80px;
  text-align: center;
  height: 80px;
  border-radius: 100px;
  background-color: #fff;
  line-height: 80px;
  border: 1px solid #e1e1e1;
  cursor: pointer;

  .bounce {
    width: 15px;
    height: 15px;
    background-color: #b9b9b9;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: bounce_delay 1.4s infinite ease-in-out both;
    animation: bounce_delay 1.4s infinite ease-in-out both;
  }

  .bounce:nth-child(1) {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
  }

  .bounce:nth-child(2) {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
  }

  .bounce:nth-child(3) {
    -webkit-animation-delay: 0;
    animation-delay: 0;
  }

  @keyframes bounce_delay {
    0%,
    80%,
    100% {
      -webkit-transform: scale(0);
      transform: scale(0);
    }

    40% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
  }
`

const Spinner = ({ ...rest }) => {
  return (
    <EllipsisContainer {...rest}>
      <div className='bounce'></div>
      <div className='bounce'></div>
      <div className='bounce'></div>
      <div className='bounce'></div>
    </EllipsisContainer>
  )
}

export default Spinner