Wrong attribute to animate view transition

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 !