Updated page transition to reset body class on animation complete rather than timeout