JSFiddle - React, Tailwind, and code Playground
by lustre
HTML
<div class="footer">
Report a problem or get more info
<div class="extraFooter">Lorem ipsum dolor set amet fhjdfh uh funih nu hui huio hufiohfus dohfu shfus fhuif hsduofhuwPFJ IQOPFJIQPFJIQ OPJI jiJIj iJij ij ifopjfidospfj ijf ifj isop j</div>
</div>
CSS
body {
margin:0;
padding:0;
}
.footer {
position: fixed;
bottom: 0;
background: rgba(148,193,33,0.85);
background: -moz-linear-gradient(left, #94c121 0%, #1d9938 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(148,193,33,0.85)), color-stop(100%,rgba(29,153,56,0.85)));
background: -webkit-linear-gradient(left, rgba(148,193,33,0.85) 0%,rgba(29,153,56,0.85) 100%);
background: -o-linear-gradient(left, rgba(148,193,33,0.85) 0%,rgba(29,153,56,0.85) 100%);
background: -ms-linear-gradient(left, rgba(148,193,33,0.85) 0%,rgba(29,153,56,0.85) 100%);
background: linear-gradient(to right, rgba(148,193,33,0.85) 0%,rgba(29,153,56,0.85) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#94c121', endColorstr='#1d9938',GradientType=1 );
width: 100%;
height: 50px;
text-align: center;
color: #fff;
line-height: 50px;
font-size: 1.4em;
font-weight: bold;
font-family: 'proxima_novablack', sans-serif;
cursor:pointer;
transition: 0.8s;
}
.shiftUp {
height:300px;
transition: 0.8s;
}
JavaScript
$(document).ready(function () {
$('.footer').click(function () {
$('.footer').toggleClass('shiftUp');
});
});