-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[v4.x] general page transition issues and inconsistencies in animation logic #17728
Comments
Hi there, Thanks for opening an issue with us! Issue 1 has a PR that I am currently cleaning up: #17224. I hope to merge this in soon. Feel free to test this PR and see if you notice any issues. Issue 2 has a known (similar) issue as you noted: #17494. I will link the two together for when we look into background images in Thanks for using Ionic! |
Has this issue been fixed? If so, should we update what exactly on our ionic projects? |
Hi there, Issue 1 has been resolved and a fix is available in Ionic Thanks! |
Any news on this issue ? :/ I have some white screen when i push a page which have a background image and an another bug which do a laggy animation when push a page (only on ios) |
Hi there, Since issue 1 was fixed in Ionic 4.1.2 and issue 2 is a duplicate of #17494, I am going to close this thread. For any updates regarding issue 2, please feel free to follow the thread I just linked to. If you are experiencing any other bugs, please open a new bug report. Thanks! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Bug Report
This is meant to cover all current issues with page transitions. Standard pages (with extended ion-header components) and full screen pages with background images.
Since this is a lingering issue imho, I attempt to consolidate the issues and be as thorough as I can be. Find git repos (branches) for all tests below.
ISSUE 1a: ion-header > ion-toolbar
Ionic version:
[x] 4.x
Current behavior:
<ion-toolbar>
only selectively animates content, not allowing additional<ion-toolbar>
elements to be properly animated during page transition.The below code currently looks like this:
Note: 2nd ion-toolbar not animated,
Expected behavior:
This should be allowed and animated properly:
Steps to reproduce:
Just rebuild below git repo https://github.com/olivermuc/pages-with-background-images/tree/standard-setup-with-custom-header
Related code:
https://github.com/olivermuc/pages-with-background-images/tree/standard-setup-with-2-ion-toolbars
Related source code
Here is where the animation logic handles
ion-toolbar
differently for headers & footers, why??It'd be much cleaner if it simply would animate the entire
ion-header
, like it does forion-footer
https://github.com/ionic-team/ionic/blob/ad20bd6a70088767644ee21f84851e3619ebb0d5/core/src/utils/transition/ios.transition.ts#L43
Ionic info:
ISSUE 1b: ion-header > div
Using DIV in ion-header (instead of 2nd ion-toolbar to match animation content selector)
Same general setup as above, but see this branch for code changes: ie. swapping out 2nd
ion-toolbar
fordiv
.GIT repo branch:
https://github.com/olivermuc/pages-with-background-images/tree/standard-setup-with-custom-header
Current behavior:
![ion-header-with-div-comp](https://user-images.githubusercontent.com/10549895/54020401-fe0d7600-418d-11e9-986c-5e0fed2df936.gif)
This doesn't look right either! Watch the red
<ion-searchbar>
lingering around too long!ISSUE 2a: host: background: ...
Full-screen background images - regardless of whether it is deemed best practice or not, imho this is a pretty common request (login screens, etc).
Other open posts on same topic:
#17494
#16678
#16639
Current behavior:
Implementing it using the host: object as recommended by @mhartington isn't satisfying as the page itself is not animated:
Note: Page bg flickers, no animation.
Unless the page host is also animated, this approach doesn't work!
GIT repo branch:
https://github.com/olivermuc/pages-with-background-images/tree/full-screen-background-on-host
ISSUE 2b: ion-content: --background:
Current behavior:
![full-screen-background-image-on-ion-content](https://user-images.githubusercontent.com/10549895/54023548-88a5a380-4195-11e9-9b8b-c51a00d3e9d0.gif)
Implementing the bg image using CSS variable
--background: url();
:Note: Page bg flickers (on iOS!), UX wise, not acceptable
Note2: This requires the
GIT repo branch:
https://github.com/olivermuc/pages-with-background-images/tree/full-screen-background-on-ion-content
Workaround: ion-content: background:
The below now does what would be expected, but requires ugly hacks in the CSS, (see also git branch) eg:
(Above code from git repo, but reduced to a minimum)
Current behavior:
![full-screen-background-image-on-ion-content-direct](https://user-images.githubusercontent.com/10549895/54024305-b55aba80-4197-11e9-9ce5-8a29600aa7f6.gif)
Implementing the bg image using CSS' (not the variable!)
background: url();
and absolute positioning of header/footer:Note: Entire page animates nicely, even on iOS.
GIT repo branch:
https://github.com/olivermuc/pages-with-background-images/tree/full-screen-background-on-ion-content-direct
TL;DR & Ask:
ISSUE 1: ion-header/ion-toolbar animation
Can we allow for any ion-toolbar content to be properly animated, just like we do for ion-footer?
ISSUE 2: full-screen page bg images
Can we officially support full screen page image backgrounds?
ion-content > inner-scroll
element?The text was updated successfully, but these errors were encountered: