-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathproject.css
More file actions
79 lines (67 loc) · 1.56 KB
/
project.css
File metadata and controls
79 lines (67 loc) · 1.56 KB
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
html, body {
/* background-color: rgb(15, 162, 228);*/
}
.landing-page-inverted {
background-image: url('./images/invert.svg');
background-repeat: no-repeat;
background-size: 100% auto;
background-position: bottom -30px right;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
height: auto;
min-height: 100vh
}
.container{
max-width: 1000px;
margin: 100px auto ;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.card{
position: relative;
margin: 20px 0;
width: 300px;
height: 400px;
padding: 10px;
background-color: rgb(252, 252, 252);
transform-style: preserve-3d;
transform: perspective(2000px);
transition: 1s;
box-shadow: inset 300px 0 50px rgba(0,0,0,.5);
}
.card:hover{
z-index: 1000;
transform: perspective(2000px) rotate(-10deg);
box-shadow: inset 20px 0 50px rgba(0,0,0,.5);
}
.card .imgBox{
position: relative;
width: 100%;
height: 100%;
border: 1px solid #000;
box-sizing: border-box;
transform-origin: left;
z-index: 1;
transition: 1s;
}
.card:hover .imgBox{
transform: rotateY(-135deg);
}
.card .imgBox .img{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.card .details{
position: absolute;
top: 0;
left: 0;
box-sizing: border-box;
padding: 20px;
}