changing background in CSS
I have the following code, and i am trying to make the background change images of the 'mobilecontainer'.
But its not working, and I am not sure why, of if its possible with CSS ?
pre
/* BACK GROUND ANIMATION OF SCREENS */
.cb-slideshow .startPage_mobilecontainer .ui-content .ui-body-e div {
animation: imageAnimation 36s linear infinite 0s !important;
}
.cb-slideshow div:nth-child(1) {
background-image: url(../image/background.jpg) no-repeat !important;
}
.cb-slideshow div:nth-child(2) {
background-image: url(../image/tenant.png) no-repeat !important
animation-delay: 6s;
}
.cb-slideshow div:nth-child(3) {
background-image: url(../image/background.jpg) no-repeat !important
animation-delay: 12s;
}
.cb-slideshow div:nth-child(4) {
background-image: url(../image/tenant.png) no-repeat !important
animation-delay: 18s;
}
@keyframes imageAnimation {
0% { opacity: 0; animation-timing-function: ease-in; }
8% { opacity: 1; animation-timing-function: ease-out; }
17% { opacity: 1 }
25% { opacity: 0 }
100% { opacity: 0 }
}
/pre
Is this possible ?