You are here

blazy.loading.css in Blazy 8

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. /* The lazyloaded element: IMG, IFRAME, DIV. */
  28. .b-lazy,
  29. .b-responsive {
  30. display: block;
  31. min-height: 1px;
  32. opacity: 0;
  33. -webkit-transition: opacity 500ms ease-in-out;
  34. transition: opacity 500ms ease-in-out;
  35. }
  36. /* Needed to display preloader with CSS BG image, otherwise hidden. */
  37. .b-loaded,
  38. .b-error,
  39. .media--loading.media--background {
  40. opacity: 1;
  41. }
  42. .media--loading {
  43. -webkit-backface-visibility: hidden;
  44. backface-visibility: hidden;
  45. position: relative;
  46. }
  47. .media--loading::before {
  48. content: '';
  49. display: block;
  50. width: 30px;
  51. height: 30px;
  52. max-width: 30px;
  53. background: #2eaae0;
  54. position: absolute;
  55. left: 50%;
  56. top: 50%;
  57. margin-left: -15px;
  58. margin-top: -15px;
  59. font-size: 0;
  60. z-index: 22;
  61. -webkit-animation: rotateplane 1.2s infinite ease-in-out;
  62. animation: rotateplane 1.2s infinite ease-in-out;
  63. }
  64. .media--background {
  65. background-size: cover;
  66. background-position: center center;
  67. background-repeat: no-repeat;
  68. }