ball-triangle-trace.css 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @keyframes ball-triangle-path-1 {
  2. 33% {
  3. transform: translate(25px, -50px); }
  4. 66% {
  5. transform: translate(50px, 0px); }
  6. 100% {
  7. transform: translate(0px, 0px); } }
  8. @keyframes ball-triangle-path-2 {
  9. 33% {
  10. transform: translate(25px, 50px); }
  11. 66% {
  12. transform: translate(-25px, 50px); }
  13. 100% {
  14. transform: translate(0px, 0px); } }
  15. @keyframes ball-triangle-path-3 {
  16. 33% {
  17. transform: translate(-50px, 0px); }
  18. 66% {
  19. transform: translate(-25px, -50px); }
  20. 100% {
  21. transform: translate(0px, 0px); } }
  22. .ball-triangle-path {
  23. position: relative;
  24. transform: translate(-29.994px, -37.50938px); }
  25. .ball-triangle-path > div:nth-child(1) {
  26. animation-name: ball-triangle-path-1;
  27. animation-delay: 0;
  28. animation-duration: 2s;
  29. animation-timing-function: ease-in-out;
  30. animation-iteration-count: infinite; }
  31. .ball-triangle-path > div:nth-child(2) {
  32. animation-name: ball-triangle-path-2;
  33. animation-delay: 0;
  34. animation-duration: 2s;
  35. animation-timing-function: ease-in-out;
  36. animation-iteration-count: infinite; }
  37. .ball-triangle-path > div:nth-child(3) {
  38. animation-name: ball-triangle-path-3;
  39. animation-delay: 0;
  40. animation-duration: 2s;
  41. animation-timing-function: ease-in-out;
  42. animation-iteration-count: infinite; }
  43. .ball-triangle-path > div {
  44. animation-fill-mode: both;
  45. position: absolute;
  46. width: 10px;
  47. height: 10px;
  48. border-radius: 100%;
  49. border: 1px solid #55595c; }
  50. .ball-triangle-path > div:nth-of-type(1) {
  51. top: 50px; }
  52. .ball-triangle-path > div:nth-of-type(2) {
  53. left: 25px; }
  54. .ball-triangle-path > div:nth-of-type(3) {
  55. top: 50px;
  56. left: 50px; }