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

Animated slide-overs do not open smoothly #357

Closed
reczy opened this issue Apr 15, 2021 · 4 comments
Closed

Animated slide-overs do not open smoothly #357

reczy opened this issue Apr 15, 2021 · 4 comments
Assignees

Comments

@reczy
Copy link

reczy commented Apr 15, 2021

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

1.0.0 (and postcss7-compat version of tailwindcss)

What browser are you using?

Chrome and Safari (Mac)

Reproduction repository

Tailwind UI Application UI > Overlays > Slide-overs > With background overlay

@reczy
Copy link
Author

reczy commented Apr 15, 2021

Tailwind - Headless ui Slide-over animation

@RobinMalfait
Copy link
Member

Hey! Thank you for your bug report!
Much appreciated! 🙏

We updated the example on https://tailwindui.com

Can you update the div above the second TransitionChild to have fixed instead of absolute, and see if that fixes things for you?

- <div class="absolute inset-y-0 right-0 pl-10 max-w-full flex">
+ <div class="fixed inset-y-0 right-0 pl-10 max-w-full flex">

@reczy
Copy link
Author

reczy commented Apr 15, 2021

Thanks @RobinMalfait - works perfectly now in Chrome and Firefox.

@RobinMalfait
Copy link
Member

Perfect, thanks!

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

No branches or pull requests

2 participants