Added RTL support.

- Flipped the position and shape of the arrows.
- Changed the direction of the animation.
- Recalculated the value of the transition.