forked from Sanskar1123/aakritisbirthday.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhover.css
More file actions
72 lines (66 loc) · 1.34 KB
/
Copy pathhover.css
File metadata and controls
72 lines (66 loc) · 1.34 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
.image {
width: 1200px;
height: 700px;
margin: 60px auto;
perspective: 1000px;
top: 20%;
}
.box {
display: block;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("media/hov1.jpg");
background-size: 0, cover;
transform-style: preserve-3d;
transition: all 0.8s;
}
.box:hover {
transform: rotateX(80deg);
transform-origin: bottom;
}
.box:after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 36px;
background: inherit;
background-size: cover, cover;
background-position: bottom;
transform: rotateX(90deg);
transform-origin: bottom;
}
.box:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
box-shadow: 0px 0px 100px 50px rgba(0, 0, 0, .5);
transition: all .5s;
opacity: .15;
transform: rotateX(95deg) translateZ(-80px) scale(0.75);
transform-origin: bottom;
}
.box:hover:before {
opacity: 1;
box-shadow: 0px 0px 25px 25px rgba(0, 0, 0, .5);
transform: rotateX(0) translateZ(-60px) scale(.85);
}
.text {
position: absolute;
width: 90%;
height: 100%;
top: 50%;
left: 50%;
letter-spacing: 2px;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
line-height: 190%;
margin: 150px auto;
transform: translate(-50%, -50%);
text-align: center;
color: #eee;
}