microsoft / fluentui

Fluent UI web represents a collection of utilities, React components, and web components for building web applications.
https://react.fluentui.dev
Other
18.13k stars 2.7k forks source link

[Feature]: add RTL support to motion APIs #31663

Open layershifter opened 1 month ago

layershifter commented 1 month ago

Library

React Components / v9 (@fluentui/react-components)

Describe the feature that you would like added

Animations created by motion APIs (createPresenceComponent(), createMotionComponent()) could be directional i.e. "slide to left" or "slide to right". They would be defined for example, by the following keyframes:

const keyframes = [
  { transform: navDirection === 'left' ? 'translateX(-100%)' : 'translateX(100%)' },
  { transform: 'translateX(0%)' },
]

However, there is no currently a way to make such keyframes to flip in RTL.

Have you discussed this feature with our team

@ling1726

Additional context

N/A

Validations

Priority

High

miroslavstastny commented 1 month ago
layershifter commented 1 week ago
  • might be required for carousel, we need to check

clarified: not needed