update to allow transitions for elements getting bigger and smaller