I have image 2048x2048px for the splash screen. Using this tutorial, i cropped it for different devices. After app loads, it opened a main view (with login page). I need to set background of that image in this view.
But in order to change the image after loading was not noticeable, I need to have the picture was also cut off, as the initial splash screen. How can i do it?
login-view:
<ion-view hide-nav-bar="true" class="login-view">
<div class="row">
<div class="col">
<img class="logo" src="img/logo.png">
</div>
</div>
<div class="row">
<div class="col">
<button class="login-btn button button-block button-dark" ng-click="Login()">
{{'Login' | translate }}
</button>
</div>
</div>
</ion-view>
my css class for ion-view:
.login-view{
background-image: url('../img/splash.png') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
}