Add size animation in layout measure phase.