Add resize animation for header