Hi guys.
Wondering if anyone else has seen this issue perhaps?
I have the following css class:
.mainMenuBackground{
background: url("../images/bg_main.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
background-size: cover;
}
Which simply sets an image as a page background and ensures it covers the screen properly.
I add this class to my ion-view tag like so:
<ion-view title="Main menu" class="mainMenuBackground">
However this seems to cause strange animation issues… When navigating from 1 screen to the next, the screens overlap, go black during transitions, just all round strangeness.
If I use an image tag below the ion-view tag to achieve the same result, the animation issues do not seem to occur, but I cannot get the CSS / HTML right to display the image properly this way. The image isn’t centered and doesn’t fill the screen like it does in the CSS class I provided.
Does anyone know if adding the CSS class to the ion-view will cause issues?
Or alternatively, any ideas on how I can achieve the same thing with an image tag under the ion-view tag?
Thanks a lot