-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS-card-hover.css
More file actions
90 lines (79 loc) · 1.46 KB
/
CSS-card-hover.css
File metadata and controls
90 lines (79 loc) · 1.46 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
80
81
82
83
84
85
86
87
88
89
90
@import url('https://fonts.googleapis.com/css?family=Poppins');
#CSS-card-hover {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: 'Poppins', sans-serif;
}
.containerh {
max-width: 1200px;
display: flex;
margin: 50px 0;
flex-wrap: wrap;
justify-content: space-around;
}
.boxh {
position: relative;
width: 350px;
height: 450px;
margin: 15px;
background: #000;
box-shadow: 0 30px 30px rgba(0,0,0,.5);
}
.boxh .imghx {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.boxh .imghx img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.5s;
}
.boxh:hover .imghx img {
opacity: 0;
}
.boxh .contenth {
position: absolute;
bottom: 20px;
left: 10%;
width: 80%;
height: 60px;
background: #fff;
transition: 0.5s;
overflow: hidden;
padding: 15px;
box-sizing: border-box;
}
.boxh:hover .contenth {
width: 100%;
height: 100%;
bottom: 0;
left: 0;
}
.boxh .contenth h3 {
margin: 0;
padding: 0;
font-size: 20px;
}
.boxh .contenth p {
margin: 10px 0 0;
padding: 0;
opacity: 0;
line-height: 1.2em;
transition: 0.5s;
text-align: justify;
}
.boxh:hover .contenth p {
opacity: 1;
transition-delay: 0.4s;
}