JSFiddle - React, Tailwind, and code Playground
CSS
div
{
width: 400px;
height: 200px;
background: url('http://placehold.it/400x200');
-webkit-transform: scaleY(-1);
transform: scaleY(-1);
background-repeat: no-repeat;
position: relative;
}
div:before
{
content: '';
display: block;
position: absolute;
width: 400px;
height: 200px;
background: url('http://placehold.it/400x200');
background-repeat: no-repeat;
-webkit-transform: scaleY(-1);
transform: scaleY(-1);
/*Before takes the transform property of original content*/
top: -200px;
}
div:after
{
content: '';
display: block;
position: absolute;
width: 400px;
height: 200px;
background: url('http://placehold.it/400x200');
background-repeat: no-repeat;
top: -400px;
}