How about this:
For each sprite, there is only one other image, completely black, but in the same form as the original. Silhouette if you want. Then create a div container, for example:
<div class="silhouette"> <div class="sprite"></div> </div>
Then you can change the opacity of the div.sprite element and achieve the desired effect. I understand that this really does not solve the problem, but I donโt know of another way that does not use PHP, which does not even solve the problem completely.
Conner douglass
source share