JSFiddle - React, Tailwind, and code Playground

HTML

<div id="overlay" class="clearfix">
    <div id="overlaycontainer">
        <div id="comparecontainer" class="overlaycontainer">
            <div class="icon"></div>
            <ul id="compare">
                <li class="fixed">LIST1</li>        
            </ul>
            <div class="shadow"></div>
            
        </div>
        <div id="dreamlistcontainer" class="overlaycontainer">
            <div class="icon"></div>
            <ul id="dreamlist">
                <li class="fixed">LIST2</li>
            </ul>
            <div class="shadow"></div>
        </div>
    </div>
</div>

<hr />

<ul class="offers clearfix">
    <li name="deal1">ITEM #1</li>
    <li name="deal2">ITEM #2</li>
    <li name="deal3">ITEM #3</li>
</ul>

CSS

body {background-color: white; padding: 50px 0 0; margin: 0;}
ul {list-style-type: none;}
#overlay {background: black url(img/dreamlist_bg.gif) center center no-repeat; display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;}
#overlaycontainer {width: 800px; height: 600px; position: relative; margin: auto; top: 50%; margin-top: -300px;}
.clearfix:after {visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0;}
.overlaycontainer { height:500px; float: left;
    box-shadow: 0 0 5px black;
    -moz-box-shadow: 0 0 5px black;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
}
.overlaycontainer.active {
    box-shadow: 0 0 10px #1cb9ee, 0 0 30px #1a86ce, 0 0 3px white;
    -moz-box-shadow: 0 0 10px #1cb9ee, 0 0 30px #1a86ce, 0 0 3px white;
}
#compare {padding: 20px; background-color: yellow;}
#dreamlist {padding: 20px; background-color: white;}        
#comparecontainer {position: absolute; top: 0; left: 0; width: 290px; opacity: 0.9;}
#dreamlistcontainer {position: absolute; top: 0; right: 0; width: 500px; opacity: 0.9;}
li {padding: 10px;}
.drop {width: 10px; height:10px; background-color: red; display: inline-block;}    
.offers {padding: 10px;}
.offers li {width: 194px; height: 300px; overflow: hidden;float: left; margin-right: 5px;}
.fixed {text-transform: uppercase; font-family: "Gill Sans"; color: #1a86ce; font-size: 28px; text-align: center; text-shadow: 0px 1px 0px white;}
.shadow {
    position: absolute;
    bottom: -11px;
    display: block;
    background: transparent url(img/imagesforem.png) no-repeat;
    height: 50px;
    width: 50px;
    margin: 0 auto;
}
.icon {
    position: absolute;
    bottom: 10px;
    display: block;
    background: transparent url(img/imagesforic.png) no-repeat;
    height: 50px;
    width: 50px;
    margin: 0 auto;
}
#comparecontainer .icon {background-position: bottom left; left: 41%;}
#dreamlistcontainer .icon {background-position: bottom right; right: 50%}

JavaScript

function overlayFadeIn() {
    $("#overlay").fadeIn();
}

function overlayFadeOut() {
    //    alert("faded.");
    pushBack();
    $("#overlay").fadeOut();
    $("#overlaycontainer").unbind("mouseleave");
}

function dropOut() {
    $(this).parent().remove();
}

function pushBack() {
    $("#overlaycontainer").unbind("mouseleave");
    $("#dreamlist").parent().animate({
        width: "500px",
        opacity: "0.9",
        right: "0",
        top: "0",
        height: "500px"
    }, 100);
    $("#compare").parent().animate({
        width: "290px",
        opacity: "0.9",
        left: "0",
        top: "0",
        height: "500px"
    }, 100);
    $("#overlaycontainer").bind("mouseleave", overlayFadeOut);
}

function pushBitCloser(which) {
    var which = which;
    var other;
    if (which.attr("id") == "dreamlist") {
        other = $("#compare"); //bal - left
        whleft = "+=15px";
        otleft = "+=0px";
        whright = "+=0px";
        otright = "+=50px";
    }
    else {
        other = $("#dreamlist"); // right
        whleft = "+=0px";
        otleft = "-=10px";
        whright = "+=0px";
        otright = "+=0px";
    }


    if (which.attr("id") == "dreamlist") {
        $("#dreamlist").parent().animate({
            width: "530px",
            opacity: "1",
            height: "550px",
            top: "-25px",
            right: "-15px"
        }, {
            duration: 200,
            specialEasing: {
                width: 'linear',
                opacity: 'linear'
            }
        });
        $("#compare").parent().animate({
            width: "270px",
            opacity: "0.7",
            left: "+10px",
            top: "+10px",
            height: "480px"
        }, {
            duration: 200,
            specialEasing: {
                width: 'linear',
                height: 'linear',
                top: 'linear',
                opacity: 'linear'
            }
        });
    }
    else {
       ...