<div id="description">
<h2>Приклад 1: зміна сепії зображення</h2>
<p>Наведіть курсор на зображення, щоб побачити ефект функції sepia().</p>
</div>
<div id="result">
<img class="image" src="https://picsum.photos/200/200" alt="Зображення 1">
</div>
#description {
background-color: #f2f2f2;
padding: 20px;
font-family: Arial, sans-serif;
margin-bottom: 20px;
}
.image {
width: 200px;
height: 200px;
transition: filter 0.5s ease;
}
.image:hover {
filter: sepia(0.85);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.