div#comparison2 {
    width: 200vw;
    height: 200vw;
    max-width: 600px;
    max-height: 650px;
    overflow: hidden; }
div#comparison2 figure {
    background-image: url(https://i.postimg.cc/152hN9vM/BEFORE1.jpg);
    background-size: cover;
    position: relative;
    font-size: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}
div#comparison2 figure > img {
    position: relative;
    width: 100%;
}
div#comparison2 figure div {
    background-image: url(https://i.postimg.cc/MTWh8XGZ/AFTER1.jpg);
    background-size: cover;
    position: absolute;
    width: 20%;
    box-shadow: 0 5px 10px -2px rgba(0,0,0,0.3);
    overflow: hidden;
    bottom: 0;
    height: 100%;
}

input[type=range]{
    -webkit-appearance:none;
    -moz-appearance:none;
    position: relative;
    top: -2rem; left: -2%;
    background-color: grey;
    width: 102%;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]:active {
    outline: none;
}

input[type=range]::-moz-range-track {
    -moz-appearance:none;
    height:15px;
    width: 98%;
    background-color: black;
    position: relative;
    outline: none;
}
input[type=range]:active {
    border: none;
    outline: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance:none;
    width: 20px; height: 15px;
    background: #fff;
    border-radius: 0;
}
input[type=range]::-moz-range-thumb {
    -moz-appearance: none;
    width: 20px;
    height: 15px;
    background: #fff;
    border-radius: 0;
}
input[type=range]:focus::-webkit-slider-thumb {
    background: white;
}
input[type=range]:focus::-moz-range-thumb {
    background: white;
}






