-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTL Support #88
Comments
@yiliansource is there a solution for this? |
Hi, sorry, uni exams got the better of me. I'll have to look into this, I'm not too familiar with the effects of |
My solution was to put the rtl property on the text div directly. The most simple solution for this would be to add party.forceInit()
setTimeout(
() =>
document
.getElementById("party-js-container")
.setAttribute("dir", "ltr"),
500
) This is obviously very crude but it works for me, I might open a fix pr later. |
Describe the bug
when the website or mobile is on rtl the confetti doesnt appear.
To Reproduce
in html tag add
dir="rtl"
fire confetti event
You can try on https://party.js.org/ example template
Expected behavior
confetti should appear when an event is fired whether its ltr or rtl
The text was updated successfully, but these errors were encountered: