123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- .container-siroi {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-around;
- }
- .siroi {
- position: relative;
- /* flex: 0 0 240px;
- width: 240px;
- height: 320px; */
- background-color: #333;
- overflow: hidden;
- border-radius: 10px;
- box-shadow: rgba(0, 0, 0, 0.66) 0 30px 60px 0, inset #333 0 0 0 5px,
- inset rgba(255, 255, 255, 0.5) 0 0 0 6px;
- transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
- }
- .siroi-bg {
- opacity: 0.5;
- position: absolute;
- top: -20px;
- left: -20px;
- width: 100%;
- height: 100%;
- padding: 20px;
- background-repeat: no-repeat;
- background-position: center;
- background-size: cover;
- transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95),
- opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
- pointer-events: none;
- }
- .siroi-info {
- padding: 20px;
- position: absolute;
- bottom: 0;
- color: #fff;
- transform: translateY(40%);
- transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
- }
- .siroi-info p {
- opacity: 0;
- text-shadow: black 0 2px 3px;
- transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
- }
- .siroi-info * {
- position: relative;
- z-index: 1;
- }
- .siroi-info:after {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- z-index: 0;
- width: 100%;
- height: 100%;
- background-image: linear-gradient(
- to bottom,
- transparent 0%,
- rgba(0, 0, 0, 0.6) 100%
- );
- background-blend-mode: overlay;
- opacity: 0;
- transform: translateY(100%);
- transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
- }
- .siroi-info h1 {
- font-family: "Playfair Display";
- font-size: 36px;
- font-weight: 700;
- text-shadow: rgba(0, 0, 0, 0.5) 0 10px 10px;
- }
- .siroi-wrap {
- margin: 10px;
- transform: perspective(800px);
- transform-style: preserve-3d;
- cursor: pointer;
- }
- .siroi-wrap:hover .siroi-info {
- transform: translateY(0);
- }
- .siroi-wrap:hover .siroi-info p {
- opacity: 1;
- }
- .siroi-wrap:hover .siroi-info,
- .siroi-wrap:hover .siroi-info p {
- transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
- }
- .siroi-wrap:hover .siroi-info:after {
- transition: 5s cubic-bezier(0.23, 1, 0.32, 1);
- opacity: 1;
- transform: translateY(0);
- }
- .siroi-wrap:hover .siroi-bg {
- transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1),
- opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
- opacity: 0.8;
- }
- .siroi-wrap:hover .siroi {
- transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1),
- box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1);
- box-shadow: rgba(255, 255, 255, 0.2) 0 0 40px 5px, white 0 0 0 1px,
- rgba(0, 0, 0, 0.66) 0 30px 60px 0, inset #333 0 0 0 5px,
- inset white 0 0 0 6px;
- }
- /*# sourceMappingURL=page-photo.css.map*/
|