JSFiddle - React, Tailwind, and code Playground
by Alexey Lisovy
HTML
<div class="box-rotate">
<div class="box-rotate-in">
<div class="box-inner">
<img src="http://example12.esy.es/flower.jpg" alt=""><span>txt</span>
</div>
</div>
</div>
CSS
.box-rotate {
display: inline-block;
background: RGBA(230, 170, 180, .8);
/*
overflow: hidden;
transform: rotate(120deg);*/
}
.box-rotate-in {
/*
overflow: hidden;
transform: rotate(-60deg);
*/
background: RGBA(180, 230, 170, .8);
}
.box-inner {
background: RGBA(170, 180, 230, .8);
/*
overflow: hidden;
transform: rotate(-60deg);*/
}
/*
.box-inner img {
transition: transform .5s;
}
.box-inner:hover img {
transform: scale(1.5);
}*/
img {
vertical-align: middle;
}
span
{
background: RGBA(230, 230, 170, .8);
}