-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS-card-hover-background.css
More file actions
75 lines (67 loc) · 1.49 KB
/
CSS-card-hover-background.css
File metadata and controls
75 lines (67 loc) · 1.49 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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#CSS-card-hover-background {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: 'Poppins', sans-serif;
background: #16384c;
}
.containera{
position: relative;
max-width: 1200px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
padding: 30px;
}
.containera .carda {
position: relative;
max-width: 250px;
height: 250px;
background: #fff;
margin: 30px 10px;
padding: 20px 15px;
display: flex;
flex-direction: column;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
transition: 0.3s ease-in-out;
}
.containera .carda:hover {
height: 450px;
}
.containera .carda .imgax {
position: relative;
width: 260px;
height: 240px;
top: -80px;
left: 30px;
}
.containera .carda .imgax img {
max-width: 150px;
border-radius: 4px;
z-index: 1;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.containera .carda .contenta {
position: relative;
margin-top: -140px;
padding: 10px 15px;
text-align: center;
color: #111;
visibility: hidden;
opacity: 0;
transition: 0.3s ease-in-out;
}
.containera .carda .contenta h2 {
margin-bottom: 10px;
}
.containera .carda:hover .contenta {
visibility: visible;
opacity: 1;
margin-top: -40px;
transition-delay: 0.3s;
}