You can invert an image (or any HTML element) using CSS filters.
In Summary
CSS
div.example {
filter: invert(1);
}
Syntax invert(number | percent);
Step by Step
HTML
Simplified<div class="example">
<figure>
<img src="images/the-hare.gif" />
<figcaption>The hare takes aim</figcaption>
</figure>
</div>
CSS
div.example {
}
CSS
div.example {
filter: invert(1);
}
Syntax invert(number | percent);
See also: