why do we need animation here instead of a simple transition?