You are here

blazy.loading.css in Blazy 8.2

Same filename and directory in other branches
  1. 8 css/components/blazy.loading.css
  2. 7 css/components/blazy.loading.css

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. transform: perspective(120px);
  9. }
  10. 50% {
  11. -webkit-transform: perspective(120px) rotateY(180deg);
  12. transform: perspective(120px) rotateY(180deg);
  13. }
  14. 100% {
  15. -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg);
  16. transform: perspective(120px) rotateY(180deg) rotateX(180deg);
  17. }
  18. }
  19. @keyframes rotateplane {
  20. 0% {
  21. transform: perspective(120px) rotateX(0deg) rotateY(0deg);
  22. }
  23. 50% {
  24. transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
  25. }
  26. 100% {
  27. transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  28. }
  29. }
  30. /* @todo deprecated and removed media--loading for is-b-loading to make sense outside media. */
  31. .media--loading,
  32. .is-b-loading {
  33. -webkit-backface-visibility: hidden;
  34. backface-visibility: hidden;
  35. position: relative;
  36. min-height: 30px;
  37. }
  38. /* Prevents costly double animations when Blur is enabled. */
  39. .media--loading:not([data-animation])::before,
  40. .is-b-loading:not([data-animation])::before {
  41. content: '';
  42. display: block;
  43. width: 30px;
  44. height: 30px;
  45. max-width: 30px;
  46. background: #2eaae0;
  47. position: absolute;
  48. left: 50%;
  49. top: 50%;
  50. margin-left: -15px;
  51. margin-top: -15px;
  52. font-size: 0;
  53. z-index: 22;
  54. -webkit-animation: rotateplane 1.2s infinite ease-in-out;
  55. animation: rotateplane 1.2s infinite ease-in-out;
  56. }
  57. /**
  58. * With JS being disabled, the NOSCRIPT tag is replaced by SPAN.
  59. * No worries about video iframes, they are broken without JS anyway.
  60. * Hide JS stuffs when being disabled. Ensures to not mess up JS users.
  61. */
  62. .media--loading > span + .b-lazy,
  63. .media--loading > span + picture,
  64. .media--loading > span + a,
  65. .media--loading.media--player > span ~ .b-lazy,
  66. .is-b-loading > span + .b-lazy,
  67. .is-b-loading > span + picture,
  68. .is-b-loading > span + a,
  69. .is-b-loading.media--player > span ~ .b-lazy {
  70. display: none;
  71. }