
.container {
  position: relative;
  width: 900px;
  height: 600px;
  border: 2px solid white; }

.container .img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 900px 100%; }

.container .background-img {
  background-image: url("https://i.imgur.com/s08MkXC.jpg"); }

.container .foreground-img {
  background-image: url("https://i.imgur.com/PfIWek4.jpg");
  width: 50%; }

.container .slider {
  position: absolute;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  background: rgba(242, 242, 242, 0.3);
  outline: none;
  margin: 0;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center; }
  .container .slider:hover {
    background: rgba(242, 242, 242, 0.1); }
  .container .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 6px;
    height: 600px;
    background: white;
    cursor: pointer; }
  .container .slider::-moz-range-thumb {
    width: 6px;
    height: 600px;
    background: white;
    cursor: pointer; }

.container .slider-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  left: calc(50% - 18px);
  top: calc(50% - 18px);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; }
  .container .slider-button:after, .container .slider-button:before {
    content: '';
    padding: 3px;
    display: inline-block;
    border: solid #5D5D5D;
    border-width: 0 2px 2px 0; }
  .container .slider-button:after {
    transform: rotate(-45deg); }
  .container .slider-button:before {
    transform: rotate(135deg); }