Is it possible to calculate the size of an element after an animation has complete using jQuery? My simplified example is:
<style>
  .brick
  {
    transition: all 0.4s ease-in-out;
  }
  .large
  {
    width: 400px;
    height: 400px;
  }
  .small
  {
    width: 200px;
    height: 200px;
  }
</style>
<script>
  $('.brick').removeClass('small').addClass('large');
  $('.brick').height(); // returns 200px but desired 400px
  $('.brick').width();  // returns 200px but desired 400px
</script>
I can't wait until after the animation completes to get the sizes and I can't hardcode any of the sizes in the JS. Any ideas?
Edit: Typo on sizes for small and large
 
     
     
     
     
    