Wrong attribute to animate view transition in the docs

Hello

Seems to have a typo in the code. The correct attribute to set animation for view transistion is ```animation```instead of ```class```.

It took me some time to figure it out.

Best regards !