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: http://jsfiddle.net/uTDay/1/
Notice that it no longer shrink from center.
I also tried to make it so that it fades out as it starts to shrink with .fadeOut() / .fadeTo() / .animate() but couldn’t get it to work.
Basically, what I’d like to achieve is this effect here when you click on the filter options – the way it shrink/grow from its center pivot and at the same time, fade in/out: http://isotope.metafizzy.co/demos/filtering.html
Thank you.
CSS3 Approach
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).
Fiddle
http://jsfiddle.net/UFQW9/
Relevant code
Javascript
CSS