You are here

blazy.fx.blur.css in Blazy 7

Same filename and directory in other branches
  1. 8.2 css/components/blazy.fx.blur.css

Blur effect.

While blurring animation impresses smoother transition, it is likely slow. You can override this file, and change animation to just transition instead.

File

css/components/blazy.fx.blur.css
View source
  1. /**
  2. * @file
  3. * Blur effect.
  4. *
  5. * While blurring animation impresses smoother transition, it is likely slow.
  6. * You can override this file, and change animation to just transition instead.
  7. */
  8. @-webkit-keyframes blazyBlur {
  9. 0% {
  10. -webkit-transform: scale(1.04);
  11. opacity: 0;
  12. }
  13. 100% {
  14. -webkit-transform: scale(1);
  15. opacity: 1;
  16. }
  17. }
  18. @keyframes blazyBlur {
  19. 0% {
  20. transform: scale(1.04);
  21. opacity: 0;
  22. }
  23. 100% {
  24. transform: scale(1);
  25. opacity: 1;
  26. }
  27. }
  28. /**
  29. Remove overflow as needed if CSS background is enabled, or on your own.
  30. .blazy {
  31. overflow: hidden;
  32. }
  33. */
  34. .media--fx--blur .b-lazy {
  35. filter: blur(6px);
  36. opacity: 1;
  37. /* transition: opacity 500ms ease-in-out; */
  38. transition: none;
  39. transform: scale(1.04);
  40. }
  41. .media--fx--blur .b-loaded {
  42. filter: blur(0);
  43. transform: scale(1);
  44. /** will-change: transform, opacity; */
  45. -webkit-animation: blazyBlur 1s ease-out;
  46. animation: blazyBlur 1s ease-out;
  47. }