Learn HTML, CSS, and JavaScript for free with the ReadyTools Academy.
Track your learning, grow at your own pace, and enjoy the journey! 🎯
In CSS, you can apply the sepia effect to elements using the filter property. The sepia effect gives an element a brownish, vintage, or old-fashioned appearance by transforming its colors to shades of brown.
Here's how you can use the sepia effect in CSS:
.sepia-element {
filter: sepia(100%);
}
in this example:
You can adjust the percentage value to control the intensity of the sepia effect. For example, sepia(50%) would result in a partially sepia-toned appearance, with some original colors preserved.
Here's another example with partial sepia:
.partial-sepia-element {
filter: sepia(30%);
}
In this case, the .partial-sepia-element class applies a 30% sepia effect, resulting in a partial transformation to shades of brown.
The sepia effect is often used to create a vintage or nostalgic look for images or elements, reminiscent of old photographs. It's a creative tool for achieving specific visual styles and adding character to your web designs.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.