-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhoverImage.css
65 lines (56 loc) · 1.01 KB
/
hoverImage.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
.contenedor:hover .imagen {
-webkit-transform: scale(1.1) !important;
transform: scale(1.3);
}
.contenedor {
overflow: hidden;
}
#effect-hover .img {
width: 100%;
height: auto;
background-size: cover;
margin: 20px auto;
position: relative;
}
#effect-hover #efecto {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
width: 100%;
height: auto;
background-color: rgba(190, 180, 9, 0.8);
opacity: 0;
transition: opacity 2s;
}
#effect-hover .img:hover #efecto {
opacity: 1;
}
#effect-hover h2 {
position: absolute;
text-align: center;
top: 0;
left: 0;
right: 0;
font-size: 30px;
transition-duration: 2s;
margin: 0px;
}
#effect-hover .img:hover h2 {
top: 50px;
}
#effect-hover p {
position: absolute;
text-align: center;
bottom: 0;
left: 0;
right: 0;
font-size: 30px;
transition-duration: 2s;
margin: 0px;
}
#effect-hover .img:hover p {
bottom: 50px;
}