JSFiddle - React, Tailwind, and code Playground
by Chris LaFrombois
HTML
<div class="row">
<div class="picture picture-first">
<img src="https://placehold.it/300x200" />
</div>
<div class="or">
or
</div>
<div class="picture picture-second">
<img src="https://placehold.it/300x200" />
</div>
</div>
SCSS
* {
box-sizing: border-box;
}
.row {
position: relative;
}
.row::after {
content: '';
display: block;
clear: both;
}
.picture {
width: calc(50% - 20px);
float: left;
position: relative;
cursor: pointer;
margin: 0 10px;
border: 5px solid blue;
}
.picture img {
width: 100%;
height: auto;
display: block;
}
.picture:hover {
border: 5px solid red;
}
.picture:hover::after {
border-color: transparent transparent red red;
}
.picture::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
background: rgba(0, 0, 0, .5);
}
.picture-first::after {
content: '';
position: absolute;
display: block;
width: 40px;
height: 40px;
border-radius: 50%;
background: #fff;
right: -35px;
top: 50%;
transform: translate(0, -50%) rotate(45deg) ;
z-index: 45;
border-width: 5px;
border-style: solid;
border-color: transparent transparent blue blue;
}
.or {
position: absolute;
width: 40px;
height: 40px;
border-radius: 50%;
background: #fff;
text-align: center;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
line-height: 2.5;
z-index: 50;
}