efstajas / svelte-stepper

🚶 A simple library for building delightfully animated stepped flows with Svelte.
https://svelte-stepper.jason-e.dev
141 stars 4 forks source link

RTL support? #2

Open amr3k opened 1 year ago

amr3k commented 1 year ago

This looks awesome, I'd love to have full RTL layout support in animation. Right now, the movement animation between pages turns from left to right, it should consider if the document has dir="rtl" and flip it away Thanks.

efstajas commented 1 year ago

Hey! Thanks a lot for the suggestion. I'm adding this to my list.

In the meantime, you can relatively easily implement this yourself by setting custom animation functions. The params argument receives a direction value, which you can use to flip the x value depending on the direction.