Tue Feb 20 2024
Edit Image with CSS filter
CSS140 views
File Name: edit-image-with-css-filter.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Filter Image without PhotoShop</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #212121;
}
section {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
img {
width: 300px;
height: auto;
box-shadow: 0 5px 15px 0 rgba(255, 255, 255, 0.3);
filter: brightness(110%)
contrast(125%)
hue-rotate(5deg)
saturate(120%)
sepia(5%)
/* invert(2%) */
drop-shadow(2px 5px 5px #ffffffa7);
}
</style>
</head>
<body>
<section>
<img
src="https://www.pngplay.com/wp-content/uploads/1/Cute-Girl-PNG-Stock-Images.png"
alt="Girl"
/>
</section>
</body>
</html>
Author:Geekboots