-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
86 lines (75 loc) · 1.6 KB
/
style.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
/* ===( CODE AASHU )=== */
body{
margin: 0;
padding: 0;
background: #f2f2f2;
font-family: "Acme";
background: #000;
}
.container{
max-width: 1000px;
margin: 100px auto;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
.codingaashu:hover:nth-child(2) {
box-shadow: 10px 10px 50px rgb(15, 55, 231);
}
.codingaashu{
position: relative;
margin: 20px 0;
width: 300px;
height: 400px;
background: #fff;
transform-style: preserve-3d;
transform: perspective(2000px);
transition: 1s;
}
.codingaashu:hover{
z-index: 1111;
transform: perspective(2000px) rotate(-10deg);
box-shadow: 10px 10px 50px rgb(223, 62, 17);
}
.codingaashu .img-container{
position: relative;
width: 100%;
height: 100%;
border: 1px solid #000;
box-sizing: border-box;
transform-origin: left;
z-index: 1;
transition: 1s;
}
.codingaashu .img-container img{
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
object-fit: cover;
}
.codingaashu:hover .img-container{
transform: rotateY(-135deg);
}
.codingaashu .codingaashu-details{
position: absolute;
left: 0;
top: 0;
box-sizing: border-box;
padding: 20px;
color: #000;
}
.codingaashu .codingaashu-details h2{
margin: 0;
padding: 0.5em 0;
text-transform: uppercase;
font-size: 2em;
color: #ed363a;
}
.codingaashu .codingaashu-details p{
margin: 0;
padding: 0;
line-height: 25px;
font-size: 1.1em;
}