# Right-to-Left UI Animation: Mirroring Motion for Arabic, Hebrew and More

> In right-to-left (RTL) interfaces, motion that represents reading direction or navigation should mirror: forward slides left-to-right becomes right-to-left, progress fills from the right, back arrows point right. Motion tied to the physical world, media playback, clocks and logos usually stays the same. Use logical properties in CSS and test with real RTL content.

Updated November 2026. Source: https://www.exodeui.com/learn/rtl-ui-animation/

## Key takeaways

- Mirror motion that shows reading or navigation direction
- Keep media controls, clocks and logos unchanged
- Use logical CSS properties and read dir in code
- Test with real RTL and mixed-direction content

## What to mirror

Material Design's bidirectionality guidance and Apple's right-to-left guidelines agree on the principle: mirror elements that indicate direction of reading or navigation.

- Page and step transitions (forward and back)
- Progress bars and steppers
- Carousels and swipe directions
- Back and forward arrows, chevrons in lists

## What not to mirror

Keep these unchanged: media playback controls (play points right in most RTL locales too), clocks and circular progress that follows a clock, logos and brand marks, and illustrations of real objects such as a phone held in a right hand, unless the design intends otherwise. Check icons individually.

## Implementation

On the web, use CSS logical properties (margin-inline-start, inset-inline-end) instead of left and right, and read the direction from the dir attribute when computing animation directions in JavaScript. On iOS and Android, platform layout mirrors automatically for many components; custom animations need explicit handling.

## Test with real content

Mirrored layouts with English text hide problems. Test with real Arabic or Hebrew strings, mixed-direction content such as numbers and Latin product names, and swipe gestures on a device.

## Building this in ExodeUI

In ExodeUI, which we make, make direction an input on components such as steppers and carousels, and set it from the document's dir attribute, so one file serves both left-to-right and right-to-left layouts.

## Frequently asked questions

### Should all animations be mirrored in RTL?

No. Mirror directional and navigational motion; keep media controls, clocks and logos as they are.

### Do progress bars fill from the right in RTL?

Linear progress bars usually do. Circular progress that follows a clock usually does not.

### How do I handle RTL in CSS animations?

Use logical properties and direction-aware transforms based on the dir attribute.

### Do swipe gestures change in RTL?

Directional gestures such as swiping to go forward should mirror.

## Related

- [Localizing animated UI](https://www.exodeui.com/learn/localizing-animated-ui/)
- [Stepper and progress animation](https://www.exodeui.com/learn/stepper-progress-animation/)
- [Swipe to dismiss animation](https://www.exodeui.com/learn/swipe-to-dismiss-animation/)
- [Carousel animation](https://www.exodeui.com/learn/carousel-animation/)
