styled.ts 1022 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import styled, { keyframes } from 'styled-components';
  2. const bouncedelay = keyframes`
  3. 0%, 80%, 100% {
  4. transform: scale(0);
  5. } 40% {
  6. transform: scale(1.0);
  7. }
  8. `;
  9. export const Spinner = styled.div`
  10. margin: 2px auto 0;
  11. display: inline-block;
  12. width: auto;
  13. text-align: center;
  14. `;
  15. export const Bounce1 = styled.div`
  16. width: 14px;
  17. height: 14px;
  18. margin: 2px;
  19. background-color: #676767;
  20. border-radius: 100%;
  21. display: inline-block;
  22. animation: ${bouncedelay} 1.4s infinite ease-in-out both;
  23. animation-delay: -0.32s;
  24. `;
  25. export const Bounce2 = styled.div`
  26. width: 14px;
  27. height: 14px;
  28. margin: 2px;
  29. background-color: #676767;
  30. border-radius: 100%;
  31. display: inline-block;
  32. animation: ${bouncedelay} 1.4s infinite ease-in-out both;
  33. animation-delay: -0.16s;
  34. `;
  35. export const Bounce3 = styled.div`
  36. width: 14px;
  37. height: 14px;
  38. margin: 2px;
  39. background-color: #676767;
  40. border-radius: 100%;
  41. display: inline-block;
  42. animation: ${bouncedelay} 1.4s infinite ease-in-out both;
  43. `;