-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhoverImage2.css
74 lines (65 loc) · 1.29 KB
/
hoverImage2.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
.contenedor {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.contenedor figure {
position: relative;
height: 250px;
cursor: pointer;
width: 350px;
overflow: hidden;
border-radius: 6px;
box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.50);
}
.contenedor figure img {
width: 100%;
height: 100%;
transition: all 400ms ease-out;
will-change: transform;
}
.contenedor figure .capa {
position: absolute;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 103, 123, 0.7);
transition: all 400ms ease-out;
opacity: 0;
visibility: hidden;
text-align: center;
}
.contenedor figure:hover>.capa {
opacity: 1;
visibility: visible;
}
.contenedor figure:hover>.capa h3 {
margin-top: 70px;
margin-bottom: 15px;
}
.contenedor figure:hover>img {
transform: scale(1.3);
}
.contenedor figure .capa h3 {
color: #fff;
font-weight: 400;
margin-bottom: 120px;
transition: all 400ms ease-out;
margin-top: 30px;
}
.contenedor figure .capa p {
color: #fff;
font-size: 15px;
line-height: 1.5;
width: 100%;
max-width: 220px;
margin: auto;
}