I figured it out. JavaScript is not involved, it's pure CSS.
Namely, webkit's -webkit-transition
property:
/* css */
.box {
background: #5599ff; text-align: center;
line-height: 80px; height: 80px; width: 100px;
font-family: arial, helvetica; color: #FFF;
-webkit-border-radius:3px; margin: 10px }
.trans {
-webkit-transition:all .218s; }
<!-- html -->
<div class="box"> STIFF </div>
<div class="box trans"> FLUID </div>
EDIT: Upon further research, I found out most browsers (ie: everything but IE) support a vendor specific transition
CSS property. However, only webkit browsers use transitions when the page is resized.