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

Plugin acts weirdly when list items feature CSS transition #41

Open
flekschas opened this issue Jan 26, 2016 · 0 comments
Open

Plugin acts weirdly when list items feature CSS transition #41

flekschas opened this issue Jan 26, 2016 · 0 comments

Comments

@flekschas
Copy link
Contributor

I ran into a weird issue where the list to be scrolled started to jump around crazily when new data was loaded (See here: refinery-platform/refinery-platform#852) and I figured out that this was caused by the following styling on list items:

li {
  transition: height 0.2s ease;
}

It makes sense in a way as JS probably relies on the immediate application of the adjusted height of the first pseudo list item. A simple fix would be to disable transitions on that pseudo list item via JS since element styles can't be overwritten by CSS.

CSS Fix:

li {
  transition: all 0.2s ease;
}
li:first-child {
  transition: none !important;
}
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

1 participant