- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Animar filtros CSS</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="compare">
<div class="compare-single hue-animate">
<img src="img/spb-7-full.jpg" alt="">
</div>
</div>
</body>
</html>
CSS
@keyframes rotate-colors {
100% {
}
}
.hue-animate img {
animation: rotate-colors 2s linear infinite;
}
Ha ido a otra página
ObjetivosRealizado
0
- En el fotograma clave
100%de la animaciónrotate-colors, agrega el filtro de rotación del tono con el valor360deg.