Fix page direction and animation in RTL mode