- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Animating CSS Filters</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;
}
You’ve gone to a different page
Goalscompleted
0
- In the
100%
frame of therotate-colors
directive, set the color rotation filter to a value of360deg
.
Comments