This is a quick project to demonstrate how to quickly add a duotone effect to images on your Webflow site using a small amount of CSS.
To get this to work, all you'll need is 3 things:
The good news is that you don't really need any CSS knowledge to use this, just copy and paste the code below into your page or site header and I'll show you how to make any needed modifications.
<style>
.img-wrapper img {
mix-blend-mode: multiply;
}
.img-wrapper::before {
background-color: #changethis;
bottom: 0;
content: '';
height: 100%;
left: 0;
mix-blend-mode: lighten;
position: absolute;
right: 0;
top: 0;
width: 100%;
z-index: 1;
}
</style>
Copy that little bit of code and paste into your page or site settings, based on your needs:
In the CSS snippet shared above, you might notice a tomato-colored box that says #changethis. You need to change this.
This is where you're going to put the hex code, RBG value, or name for your first color, the color that will take up the darker part of your image.
As I mentioned before, for this step you'll need 2 things:
Here's what you do:
Now you can publish your site, and you should see your fancy new duotone image right on your live site!
Remember, since we're using custom code, you won't see the duotone effect in the Designer, you'll only be able to see it on the published live site.
If you have any questions on setting this up, or run into any issues, feel free to reach out to me at zach@avengr.co and I'll answer any questions I can!