-
Notifications
You must be signed in to change notification settings - Fork 243
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
[BUG] Transition not working when background-color is applied #131
Comments
I landed here trying to figure out why |
I figured it out and is the fact that the By the time you want to filter these in again, the CSS transition effects DO happen but behind the parent element that has the If you add a For example: HTML:
CSS with super deep z-index:
I hope it serves you. |
Can confirm this is an issue. In my case it isn't related to a background color per se, but rather a combination of a few styles a few levels up in the markup. I recommend a different approach to managing the animation as there can be unpredicted side effects in the current approach. |
@wilbertcaba adding that crazy minus z-index makes the items not clickable so it kind of defeats the purpose of filtering things. |
Apologies for spamming, |
@donkutbay As you can see, I mention this issue in my comment with an alternate fix:
Glad your solution worked as well. |
When the container element (not particularly the parent) has
background
orbackground-color
property set to a value other thantransparent
, then thefilter in
transition breaks (it immediately shows the items instead of using transition).However, when the background color is applied to the
body
or thehtml
element, it works!Filterizr version
2.2.3 (have not tested with other versions).
To Reproduce
Steps to reproduce the behavior:
Demo Gallery
h1
element<main>
element (it has no classes applied)background-color: #123456;
Cities
(works). Click onAll
(notice the bug - instant show up of items!).Expected behavior
The expected behavior should be without the flashing effect of filtering items.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: