You are here

blazy.loading.css in Blazy 7

File

css/components/blazy.loading.css
View source
  1. /**
  2. * @file
  3. */
  4. /* Credit: https://github.com/tobiasahlin/SpinKit */
  5. @-webkit-keyframes rotateplane {
  6. 0% {
  7. -webkit-transform: perspective(120px);
  8. }
  9. 50% {
  10. -webkit-transform: perspective(120px) rotateY(180deg);
  11. }
  12. 100% {
  13. -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg);
  14. }
  15. }
  16. @keyframes rotateplane {
  17. 0% {
  18. transform: perspective(120px) rotateX(0deg) rotateY(0deg);
  19. }
  20. 50% {
  21. transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
  22. }
  23. 100% {
  24. transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  25. }
  26. }
  27. .media--loading {
  28. -webkit-backface-visibility: hidden;
  29. backface-visibility: hidden;
  30. position: relative;
  31. }
  32. .media--loading::before {
  33. content: '';
  34. display: block;
  35. width: 30px;
  36. height: 30px;
  37. max-width: 30px;
  38. background: #2eaae0;
  39. position: absolute;
  40. left: 50%;
  41. top: 50%;
  42. margin-left: -15px;
  43. margin-top: -15px;
  44. font-size: 0;
  45. z-index: 22;
  46. -webkit-animation: rotateplane 1.2s infinite ease-in-out;
  47. animation: rotateplane 1.2s infinite ease-in-out;
  48. }
  49. .media--background {
  50. background-size: cover;
  51. background-position: center center;
  52. background-repeat: no-repeat;
  53. }
  54. .media--picture,
  55. .media--picture picture,
  56. .media--picture img {
  57. min-height: 1px;
  58. }