JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="imagem1" />
<label for="imagem1">
    <img src="http://eyosongive.us/lolk/data/img/aatrox_1.jpg" alt="">
</label>

CSS

:checked + label {
    opacity: 0.5;
}