JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/css/bootstrap.min.css">

<div id="box">
  <button>
  Press
  </button>
</div>

CSS

#box{
  background-color: red;
  width: 200px;
  height: 80px;
}

button{
  margin: auto;
}

JavaScript

$('button').click(function() {
    var width = $(this).css('width');
    var height = $(this).css('height');
    //alert(width);
    var newWidth = $(this).css('width');
    $(this).css({'width': width, 'height': height});
    $('#box').animate({'height': '200px'}, 1000);
});