- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Smooth Transitions and CSS Filters</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="compare">
<div class="compare-single combo">
<img src="img/spb-6-full.jpg" alt="">
</div>
</div>
</body>
</html>
CSS
.combo img {
}
.combo img:hover {
}
You’ve gone to a different page
Goalscompleted
0
- Assign the
grayscale(1)
filter combination to the image in the.combo
block - as well as
blur(2px)
. - Set the filter value to change to
none
when the cursor is hovered over the image. - Then add a smooth transition for all properties to the image with a duration of
0.6s
.
Comments