JSFiddle - React, Tailwind, and code Playground
HTML
<div id="log">
<div class="wrapper">
</div>
</div>
<button id="add">Add Entry</button>
CSS
#log {
position: absolute;
bottom: 100px;
left: 5px; right: 5px;
background-color: lightgray;
height: 30px;
line-height: 30px;
font-size: 20px;
padding-left: 10px;
overflow: hidden;
float: bottom;
}
.wrapper {
position: absolute;
left: 0;
bottom: 0;
}
JavaScript
function log(m) {
$('#log .wrapper').append('<div>' + m + '</div>');
}
$("#add").on('click',function() {
log("New Entry Added...")
})
$('#log').hover(
function() {
$('#log').animate({"height":"200px"})
},
function() {
$('#log').animate({"height":"30px"})
}
)
$(document).ready(function() {
log('Document Ready.')
})