_masks.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Masks
  2. // General properties
  3. .view {
  4. position: relative;
  5. overflow: hidden;
  6. cursor: default;
  7. .mask {
  8. position: absolute;
  9. top: 0;
  10. left: 0;
  11. right: 0;
  12. bottom: 0;
  13. overflow: hidden;
  14. width: 100%;
  15. height: 100%;
  16. background-attachment: fixed;
  17. }
  18. img, video {
  19. position: relative;
  20. display: block;
  21. }
  22. video {
  23. &.video-intro {
  24. z-index: -100;
  25. top: 50%;
  26. left: 50%;
  27. transform: $intro-video-transform;
  28. transition: $intro-video-transition opacity;
  29. min-width: 100%;
  30. min-height: 100%;
  31. width: auto;
  32. height: auto;
  33. }
  34. }
  35. }
  36. // Overlay
  37. .overlay {
  38. .mask {
  39. opacity: 0;
  40. transition: $mask-overlay-transition;
  41. &:hover {
  42. opacity: 1;
  43. }
  44. }
  45. }
  46. // Zoom
  47. .zoom {
  48. img, video {
  49. transition: $mask-zoom-transition;
  50. }
  51. &:hover {
  52. img, video {
  53. transform: $mask-zoom-transform;
  54. }
  55. }
  56. }
  57. // Patterns
  58. $patterns: (
  59. 1: "01",
  60. 2: "02",
  61. 3: "03",
  62. 4: "04",
  63. 5: "05",
  64. 6: "06",
  65. 7: "07",
  66. 8: "08",
  67. 9: "09"
  68. );
  69. @each $no, $filename in $patterns {
  70. .pattern-#{$no} {
  71. background: url("#{$image-path}/overlays/#{$filename}.png");
  72. background-attachment: fixed;
  73. }
  74. }