Right-to-Left UI Animation: Mirroring Motion for Arabic, Hebrew and More
How to animate interfaces for right-to-left languages: which motion to mirror, what to keep, logical CSS properties, gestures, icons and testing.
Core Takeaway
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.
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.
Key Principles to Remember
- 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
Frequently Asked Questions
Sources
- Bidirectionality — Material Design
- Right to left — Apple Human Interface Guidelines
- CSS logical properties and values — MDN Web Docs