JSFiddle - React, Tailwind, and code Playground

by dirtyd77

HTML

<div class="wrapper">
    <div id="logo"></div>
    <div id="contactForm">
        <p id="contact">Contact</p>
        <form>
        </form>
    </div>
</div>

CSS

html, body {
    margin: 0px;
    padding: 0px;
    min-height: 100%;
    height: 100%;
}
body {
    background: #e4e4e4 url('http://willhousemedia.com/wp-content/uploads/2013/09/Gray-Tile.png') repeat;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.wrapper {
    position:relative;
    width:100%;
    height: 100%;
    overflow:hidden;
}

#logo {
    position:absolute;
    min-width:290px;
    background-image:url('http://willhousemedia.com/wp-content/uploads/2013/09/WHM-Logo_Shadow1.png');
    background-size: 290px 93px;
    background-position: center center;
    background-repeat: no-repeat;
    top:0;
    bottom:0;
    left:0;
    right:0;
    z-index:0;
}

#contactForm{ 
    position:absolute;
    margin: 0 0 0 -16.5%;
    height: auto;
    width: 33%;
    left: 50%;
    top:90%;
} 

#contactForm p{
    font-variant: small-caps;
    
}

#contact {
    font-weight:bold;   
    text-align:center;
    padding-bottom:0.4em;
}

#contact:hover {
    text-decoration: underline;
    cursor:pointer;
}

JavaScript

$(function(){
    var _bool = false;
    $('#contact').click(function(){
        
        $('#logo').stop(true, false).animate({
            bottom: !_bool ? '70%' : '10%'
        }, 575, "swing");
        
        $('#contactForm').stop(true, false).animate({
            top: !_bool ? '30%' : '90%'
        }, 575, "swing");
        
        _bool = !_bool;
    });
});