-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
79 lines (79 loc) · 1.38 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
body{
margin: 0;
padding: 0;
background: #262626;
font-family: 'Patrick Hand SC', cursive;
}
.center{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.container{
position: relative;
width: 240px;
height: 300px;
background: #fff;
overflow: hidden;
}
.container img{
width: 100%;
height: 100%;
filter: grayscale(100%);
transition: 2s;
}
.container:hover img{
filter: grayscale(0%);
transform: scale(1.2);
}
.container h2{
position: absolute;
bottom: 0;
margin: 0;
font-size: 30px;
text-align: center;
width: 100%;
background: #fff;
color: #262626;
transform-origin: bottom;
transition: .5s;
transform: perspective(500px) rotateX(90deg);
}
.container:hover h2{
transform: perspective(500px) rotateX(0deg);
}
.container ul{
margin: 0;
padding: 0;
position: absolute;
top: 0;
left: 0;
}
.container ul li{
list-style: none;
background: #fff;
height: 40px;
width: 40px;
text-align: center;
line-height: 40px;
transform-origin: left;
transition: .5s;
border-bottom: 1px solid rgba(0,0,0,1);
transform: perspective(1000px) rotateY(90deg);
}
.container ul li .fa{
color: #262626;
}
.container:hover ul li{
transform: perspective(1000px) rotateY(0deg);
}
.container:hover ul li:nth-child(1){
transition-delay: .5s;
}
.container:hover ul li:nth-child(2){
transition-delay: .8s;
}
.container:hover ul li:nth-child(3){
transition-delay: 1.1s;
}