page-photo.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. .container-siroi {
  2. display: flex;
  3. flex-wrap: wrap;
  4. justify-content: space-around;
  5. }
  6. .siroi {
  7. position: relative;
  8. /* flex: 0 0 240px;
  9. width: 240px;
  10. height: 320px; */
  11. background-color: #333;
  12. overflow: hidden;
  13. border-radius: 10px;
  14. box-shadow: rgba(0, 0, 0, 0.66) 0 30px 60px 0, inset #333 0 0 0 5px,
  15. inset rgba(255, 255, 255, 0.5) 0 0 0 6px;
  16. transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  17. }
  18. .siroi-bg {
  19. opacity: 0.5;
  20. position: absolute;
  21. top: -20px;
  22. left: -20px;
  23. width: 100%;
  24. height: 100%;
  25. padding: 20px;
  26. background-repeat: no-repeat;
  27. background-position: center;
  28. background-size: cover;
  29. transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95),
  30. opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  31. pointer-events: none;
  32. }
  33. .siroi-info {
  34. padding: 20px;
  35. position: absolute;
  36. bottom: 0;
  37. color: #fff;
  38. transform: translateY(40%);
  39. transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  40. }
  41. .siroi-info p {
  42. opacity: 0;
  43. text-shadow: black 0 2px 3px;
  44. transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  45. }
  46. .siroi-info * {
  47. position: relative;
  48. z-index: 1;
  49. }
  50. .siroi-info:after {
  51. content: "";
  52. position: absolute;
  53. top: 0;
  54. left: 0;
  55. z-index: 0;
  56. width: 100%;
  57. height: 100%;
  58. background-image: linear-gradient(
  59. to bottom,
  60. transparent 0%,
  61. rgba(0, 0, 0, 0.6) 100%
  62. );
  63. background-blend-mode: overlay;
  64. opacity: 0;
  65. transform: translateY(100%);
  66. transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  67. }
  68. .siroi-info h1 {
  69. font-family: "Playfair Display";
  70. font-size: 36px;
  71. font-weight: 700;
  72. text-shadow: rgba(0, 0, 0, 0.5) 0 10px 10px;
  73. }
  74. .siroi-wrap {
  75. margin: 10px;
  76. transform: perspective(800px);
  77. transform-style: preserve-3d;
  78. cursor: pointer;
  79. }
  80. .siroi-wrap:hover .siroi-info {
  81. transform: translateY(0);
  82. }
  83. .siroi-wrap:hover .siroi-info p {
  84. opacity: 1;
  85. }
  86. .siroi-wrap:hover .siroi-info,
  87. .siroi-wrap:hover .siroi-info p {
  88. transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  89. }
  90. .siroi-wrap:hover .siroi-info:after {
  91. transition: 5s cubic-bezier(0.23, 1, 0.32, 1);
  92. opacity: 1;
  93. transform: translateY(0);
  94. }
  95. .siroi-wrap:hover .siroi-bg {
  96. transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1),
  97. opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
  98. opacity: 0.8;
  99. }
  100. .siroi-wrap:hover .siroi {
  101. transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1),
  102. box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1);
  103. box-shadow: rgba(255, 255, 255, 0.2) 0 0 40px 5px, white 0 0 0 1px,
  104. rgba(0, 0, 0, 0.66) 0 30px 60px 0, inset #333 0 0 0 5px,
  105. inset white 0 0 0 6px;
  106. }
  107. /*# sourceMappingURL=page-photo.css.map*/