loading4.css 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. .lds-heart {
  2. display: inline-block;
  3. position: relative;
  4. width: 64px;
  5. height: 64px;
  6. transform: rotate(45deg);
  7. transform-origin: 32px 32px;
  8. }
  9. .lds-heart view {
  10. top: 23px;
  11. left: 19px;
  12. position: absolute;
  13. width: 26px;
  14. height: 26px;
  15. background: #42b983;//可修改颜色
  16. animation: lds-heart 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  17. }
  18. .lds-heart view:after,
  19. .lds-heart view:before {
  20. content: " ";
  21. position: absolute;
  22. display: block;
  23. width: 26px;
  24. height: 26px;
  25. background: #42b983;//可修改颜色
  26. }
  27. .lds-heart view:before {
  28. left: -17px;
  29. border-radius: 50% 0 0 50%;
  30. }
  31. .lds-heart view:after {
  32. top: -17px;
  33. border-radius: 50% 50% 0 0;
  34. }
  35. @keyframes lds-heart {
  36. 0% {
  37. transform: scale(0.95);
  38. }
  39. 5% {
  40. transform: scale(1.1);
  41. }
  42. 39% {
  43. transform: scale(0.85);
  44. }
  45. 45% {
  46. transform: scale(1);
  47. }
  48. 60% {
  49. transform: scale(0.95);
  50. }
  51. 100% {
  52. transform: scale(0.9);
  53. }
  54. }