@flavordaaave I used your method to achieve similar result and it works, however it applied to every tabs (pages). For my design, I only wanted this effect (transparent navbar and full screen content) on one page. Any suggestion?
I am working to apply similar rules you had within my page scss classes to keep it modulated, no luck so far. Any help or suggestions would be appreciated, thanks.
@codestroyer you can achieve that by wrapping all the styles inside an extra class (e.g. ā.fullscreenā) and then dynamically apply that class to your body on pageEnter/pageLeave.
So in your the styles could be:
.fullscreen {
ion-navbar-section,
ion-tabbar-section,
ion-content-section {
position: absolute;
width: 100%;
}
ion-navbar-section {
z-index: 1000;
top: 0;
}
ion-tabbar-section {
z-index: 1000;
bottom: 0;
}
ion-content-section {
z-index: 10;
}
scroll-content {
padding-top: $toolbar-ios-height + 20px; // extra padding for the ios statusbar
padding-bottom: $toolbar-ios-height; // Padding for the Tabbbar (only needed if tabbar is used)
}
}
and then on the page where you want to apply the effect add something like this:
The suggestion was awesome, but is no longer needed as of BETA 10. Two of the breaking changes mentioned:
ion-content now takes up 100% of the viewport height, but it has margin added to the top and bottom to adjust for headers, footers, and tabs.
ion-content now accepts fullscreen as an attribute to to tell the content to scroll behind the header. This allows for transparent toolbars and tab pages without navbars!
So⦠finally without to many hassle a transparent navigation!
Do you want the ionic header to be transparent or the statusbar? I should notice that the backdrop filters only work on safari now. If you just want it transparent, use an rgba or something like that
Hi,
Is the example in the blog about the beta 10 release still working in beta 11 ?
Because itās not for me
Iā trying to get only the ion-toolbar transparent but nothing happens !
I have the same header organisation as the example.