JSFiddle - React, Tailwind, and code Playground
HTML
<div id="image1" class="image"></div>
<div id="image2" class="image"></div>
CSS
.image{float:left; width:150px; height:300px; background:url(http://wunderweiss.com/assets/Startseitenthumbs/startteasertinavienna.png) no-repeat;}
#image2{background-color:white;}
JavaScript
$('#image1, #image2').css('opacity',0.5);