-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.css
104 lines (101 loc) · 1.86 KB
/
project.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
.imgbx img{
width:200px;
height:265px;
}
body{
display:flex;
justify-content:center;
align-items:center;
min-height:100vh;
}
.container{
position:relative;
width:1100px;
display:flex;
transform-style:preserve-3d;
perspective:500px;
}
.container .box{
position:relative;
width:275px;
height:275px;
background:black;
transition:0.5s;
transform-style:preserve-3d;
overflow:hidden;
}
.container:hover .box{
transform:rotateY(25deg);
}
.container .box:hover ~ .box{
transform:rotateY(-25deg);
}
.container .box:hover{
transform:rotateY(0deg)scale(1.25);
box-shadow:0 25px 40px rgba(0,0,0);
}
.container .box .imgbx{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
.imgbx:before{
content:'';
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(180deg,#f00,#000);
z-index:1;
opacity:0;
transition:0.5s;
mix-blend-mode:multiply;
}
.container .box:hover .imgbx:before{
opacity:1;
}
.container .box .imgbx img{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit:cover;
}
.container .box .content{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:1;
display:flex;
padding:20px;
align-items:flex-end;
box-sizing:border-box;
}
.container .box .content h2{
color:#fff;
transition:0.5s;
text-transform:uppercase;
font-size:20px;
transform:translateY(-200px);
margin-bottom:5px;
}
.container .box:hover .content h2{
transform:translateY(0);
transition-delay:0.6s;
}
.container .box:hover .content p{
transform:translateY(0);
transition-delay:0.6s;
}
.container .box .content p{
color:#fff;
transition:0.5s;
font-size:20px;
transform:translateY(200px);
}