-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanimacion.css
67 lines (59 loc) · 961 Bytes
/
animacion.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
body {
background-color:linen;
}
h1{
text-decoration-color: : "#005566";;
padding-bottom: 30 px;
font-family: "courier";
}
.cuadro{
border: 1px solid black;
background-color:white;
padding-top: 10px;
padding-left: 10px;
padding-bottom: 20px;
opacity:0.2;
}
.caja{
border-radius: 3px;
height: 100px;
margin: 50px auto;
width: 150px;
background: #40BBBB;
transition: all 1s;
}
.cuadro:hover{
animation: aparecer 1s ease-in forwards;
transition:all 1s;
}
.cuadro:hover .caja{
transform:scale(1.5);
}
p{
text-align: center;
}
/* Animaciones desde aca*/
@keyframes hover{
0%{
transform:scale(0.4);
opacity:0.2;
}
60%{
transform:scale(1.1);
opacity:1;
}
100%{
transform:scale(1);
}
}
@keyframes aparecer{
0%{
opacity:0;
}
60%{
opacity:0.8;
}
100%{
opacity:1;
}
}