Documento 23
Documento 23
DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#object {
width: 100px;
height: 100px;
background: skyblue;
border-radius: 100%;
animation: animation1 2s infinite;
animation-duration: 2s;
}
@keyframes animation1 {
0% {transform:translateX(0px);}
25% {transform:translateX(200x);}
50% {transform:translateX(200px) translateY(200px);}
75% {transform:translateX(0px) translateY(200px);}
100% {transform:translateX(0px) translateY(0px);}
}
}
</style>
</head>
<body>
<div id="object"></div>
</body>
</html>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#object {
width: 100px;
height: 100px;
background: skyblue;
border-radius: 100%;
animation: animation1 2s infinite animation: animation2 0.5s ease infinite;
animation-duration: 2s;
}
@keyframes animation1 {
0% {transform:translateX(0px);}
25% {transform:translateX(200x);}
50% {transform:translateX(200px) translateY(200px);}
75% {transform:translateX(0px) translateY(200px);}
100% {transform:translateX(0px) translateY(0px);}
}
@keyframes animation2 {
0% { border-radius: 100%;}
100% {border-radius: 100%; } ç
}
}
</style>
</head>
<body>
<div id="object"></div>
</body>
</html>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#object {
width: 100px;
height: 100px;
background: skyblue;
border-radius: 100%;
animation: animation1 2s infinite animation: animation2 0.5s ease infinite alternate;
animation-duration: 2s;
}
@keyframes animation1 {
0% {transform:translateX(0px);}
25% {transform:translateX(200x);}
50% {transform:translateX(200px) translateY(200px);}
75% {transform:translateX(0px) translateY(200px);}
100% {transform:translateX(0px) translateY(0px);}
}
@keyframes animation2 {
0% { border-radius: 100%;}
100% {border-radius: 100%; } ç
}
}
</style>
</head>
<body>
<div id="object"></div>
</body>
</html>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#object {
width: 100px;
height: 100px;
background: skyblue;
border-radius: 100%;
animation: animation1 2s infinite animation: animation2 0.5s ease infinite alternate;
animation-duration: 2s;
}
@keyframes animation1 {
0% {transform:translateX(0px);}
25% {transform:translateX(200x);}
50% {transform:translateX(200px) translateY(200px);}
75% {transform:translateX(0px) translateY(200px);}
100% {transform:translateX(0px) translateY(0px);}
}
@keyframes animation2 {
0% { border-radius: 100%; background: skyblue}
100% {border-radius: 0%; background: red } ç
}
}
</style>
</head>
<body>
<div id="object"></div>
</body>
</html>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#object {
width: 100px;
height: 100px;
background: skyblue;
border-radius: 100%;
animation: animation1 2s ease infinite, animation2 0.5s ease infinite;
animation-duration: 2s;
}
@keyframes animation1 {
0% {transform:translateX(0px);}
25% {transform:translateX(200x);}
50% {transform:translateX(200px) translateY(200px);}
75% {transform:translateX(0px) translateY(200px);}
100% {transform:translateX(0px) translateY(0px);}
}
@keyframes animation2 {
0% {border-radius:100%;background: skyblue;}
100% {border-radius:0%;background: red;}
}
</style>
<button onclick="object.style.animation= "animation1 2s ease infinite">animation1</button>
<button onclick="object.style.animation= "animation2 2s ease infinite alternate">animation1</button>
</head>
<body>
<div id="object"></div>
</body>
</html>