-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanimaciones.html
More file actions
57 lines (57 loc) · 988 Bytes
/
animaciones.html
File metadata and controls
57 lines (57 loc) · 988 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Propiedades en CSS - Animaciones</title>
<style>
.pelota{
width: 100px;
height: 100px;
background: red;
border-radius: 100px;
animation: recorrido 2s infinite;
}
@keyframes recorrido{
25%{
transform: translate(1200px, 0px);
}
50%{
transform: translate(1200px, 600px);
}
75%{
transform: translate(0px, 600px);
}
100%{
transform: translate(0px, 0px);
}
}
.corazon{
width: 150px;
margin: auto;
margin-top: 150px;
animation: escala 2s infinite;
}
.corazon img{
width: 100%;
}
@keyframes escala{
0%{
transform: scale(1.0);
}
50%{
transform: scale(1.5);
}
100%{
transform: scale(1.0);
}
}
</style>
</head>
<body>
<div class="pelota"></div>
<div class="corazon">
<img src="IMG/corazao.png" alt="">
</div>
</body>
</html>