JSFiddle - React, Tailwind, and code Playground

by Anton Ayupov

HTML

<div class="img-list">    
    <div class="img-item img-item-first">
        <div class="img-item-light">
            <img src="http://i080.radikal.ru/1007/02/54072b718f0e.jpg" alt="" />
        </div>
        <div class="img-item-original">
            <img src="http://i080.radikal.ru/1007/02/54072b718f0e.jpg" alt="" />
        </div>
    </div>
    <div class="img-item img-item-last">
        <div class="img-item-light">
            <img src="http://img202.imageshack.us/img202/8351/58736886.jpg" alt="" />
        </div>
        <div class="img-item-original">
            <img src="http://img202.imageshack.us/img202/8351/58736886.jpg" alt="" />
        </div>
    </div>
</div>

CSS

body {
    margin: 0;
}

img {
    border: 0;
    vertical-align: top;
    max-height: 200px;
}

.img-list {
    font-size: 0;
    margin: 20px;
}

.img-item {
    position: relative;
    display: inline-block;
}

.img-item-light {
    opacity:.7;
}

.img-item-original {
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
    top: 0;
}

.img-item-last {
    margin-left: -50px;
}

.img-item-first .img-item-original {
    right: 50px;
    left: 0;
}

.img-item-last .img-item-original {
    left: 50px;
    right: 0;
}

.img-item-first img {
    float: left;
}

.img-item-last img {
    float: right;
}