JSFiddle - React, Tailwind, and code Playground
by lottikarotti
HTML
<div class="wrapper cf">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
CSS
/* -- normalize -- */
* { margin: 0 ; padding: 0 ; border: 0 none ; }
html, body { font-size: 100% ; }
/* -- clearfix -- */
.cf:before, .cf:after { content: " " ; display: table ; }
.cf:after { clear: both ; }
/* -- layout -- */
.wrapper div {
float: left ;
margin: 1em ;
width: 10em ;
height: 10em ;
background-color: lightblue ;
cursor: pointer ;
-webkit-transition: opacity .2s linear ;
-moz-transition: opacity .2s linear ;
-o-transition: opacity .2s linear ;
transition: opacity .2s linear ;
}
.wrapper div:hover+div {
opacity: .5 ;
}