Skip to content
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

Align Center #4

Open
oltipreka opened this issue Aug 2, 2022 · 2 comments
Open

Align Center #4

oltipreka opened this issue Aug 2, 2022 · 2 comments

Comments

@oltipreka
Copy link

I have tried changing the size of a lottie by reducing the original one. But it is aligned left.
Is there a way to align at the centre?
I tried looking at the code and it seem like one can only modify the height and width, but not the alignment.

Is it possible to add such a argument to the st_lottie_spinner?

Thank you in advance, Fanillo.

@mirfan899
Copy link

bump

@OrjwanZaafarani
Copy link

There's a workaround:

col1, col2, col3 = st.columns(3)

with col2:
    st.lottie(data, width=250)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants