-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Layered featherlight close animation #126
Comments
Yes, indeed. With the I'm not too sure what to do about it though. |
How about switching to |
Mmm, that could work. |
So, |
Maybe the solution is to have a few rules. I haven't run any test but I'm thinking something like:
|
Or else accept that the second window will dim the screen even further, i.e. just have |
Mmm, or use your "first-of-type" idea, but when opening/closing a nested featherlight, we fade-out/in the previous content box, that could look nice and no flicker I think... |
Yip I was thinking of something with css transitions as well so when the |
Just for reference, I was having further issues that turned out to be related to this ":last-of_type" selector calebjacob/tooltipster#369. The idea there was to put all the featherlights into one div. I think that's pretty useful. If you want me to open a new issue I will but I think perhaps it could help solve this problem:
Now ".feather-wrapper" gets
But ".featherlight" gets
I'm not sure, but perhaps css transitions can animate the opacity variable for us when number 3 closes and the second featherlight ends up on top with the first now becoming visible. Anyway nesting inside a div would be useful to me for tooltipster |
Just to note working towards solution here I've added
to the end of my
has solved the bug with tooltipster. Next step the fading. This is useful functionality in my mind though - I would say worth making the default...? |
Okay, my solution (which I'm pretty happy with thus far) is:
|
Will @jcuenod's solution be included in featherlight? @marcandre |
I like that solution. It probably could have been designed this way from the get go. I'm not too sure how to integrate it and stay compatible with people customizing their |
It's a long time since I looked at any of this code but how about making them mutually exclusive? That is, "If you want to customise your |
@jcuenod You saved my life with your workaround. The default background is flickering when displaying an Google Map at each call of google.maps.event.trigger(map, 'resize') event. Thanks ! |
@jcuenod You said "Next step the fading" but didn't post a solution 😢. In featherlight.js around line 314 next to :
Add :
It works with stacked boxes. |
When you open two featherlight boxes and click away/close the first there is a flicker as the background fades and then hides, suddenly showing the darker background of the box underneath.
The text was updated successfully, but these errors were encountered: