_data-flow.scss 978 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @import "variables";
  2. .data-flow-left, .data-flow-right {
  3. background-color: $brand-color;
  4. width: 0;
  5. height: calc(0.05 * var(--width-unit));
  6. position: absolute;
  7. top: calc(0.95 * var(--width-unit));
  8. background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAGklEQVQYV2MU3v75PwMDA8NbT15GEM1IugAAWIwQBUszJIoAAAAASUVORK5CYII=) repeat;
  9. }
  10. .data-flow-left {
  11. left: 0;
  12. animation: flowLeft;
  13. animation-duration: 0.3s;
  14. animation-timing-function: linear;
  15. animation-iteration-count: infinite;
  16. }
  17. .data-flow-right {
  18. right: 0;
  19. animation: flowRight;
  20. animation-duration: 0.3s;
  21. animation-timing-function: linear;
  22. animation-iteration-count: infinite;
  23. }
  24. @keyframes flowLeft {
  25. 0% {
  26. background-position-x: 0;
  27. }
  28. 100% {
  29. background-position-x: -4px;
  30. }
  31. }
  32. @keyframes flowRight {
  33. 0% {
  34. background-position-x: 0;
  35. }
  36. 100% {
  37. background-position-x: 4px;
  38. }
  39. }