Looking to create an image reveal effect on my website.
I want to display only the outline of a transparent image using brightness, then gradually reveal the full image by removing the brightness effect.
Currently, I achieve this with a black outline using the brightness filter in my code snippet. However, I would like to customize the color of the outlining shape, opting for red instead. How can I achieve this using CSS and/or Javascript?
.mask-img{
width:50%;
filter: brightness(0);
}
<div class="container">
<img class='mask-img' src="https://picsum.photos/id/1001/800/800">
</div>