So I can make a div to scale nicely from it\'s center pivot: http://jsfiddle.net/uTDay/
However, the transition starts to change when I add in content inside the div: ht
Isotope uses CSS Transforms to scale the elements, that's why all content scales with it. If you simply change the box (container) size, the contained nodes aren't affected (text has same font-size, etc.)
Use CSS transforms or change the size of your content together with the container element (like the other answers suggest).
http://jsfiddle.net/UFQW9/
Javascript
$(".btn a").click(function () {
$('.box').addClass('hidden');
});
CSS
.box {
display: block;
height: auto;
width:402px;
/*height:200px;*/
background-color: red;
padding: 20px;
-webkit-transition: all 1000ms linear;
-moz-transition: all 1000ms linear;
-ms-transition: all 1000ms linear;
-o-transition: all 1000ms linear;
transition: all 1000ms linear;
}
.box.hidden {
-moz-opacity: 0;
opacity: 0;
-moz-transform: scale(0.01);
-webkit-transform: scale(0.01);
-o-transform: scale(0.01);
-ms-transform: scale(0.01);
transform: scale(0.01);
}