I tried to change my background image with the following code
$('#mask').css({'background-image' : 'url('changingVar')',
'background-repeat' : 'no-repeat',
'background-position': 'center',
'background-size': 'cover',
});
and having a setTimeout for the waiting time.
However I want a changing animation kinda like : http://www.luckywok.at
The problem is when I use fadeout and fadeIn it's fading out and in my complete screen, since I have a wrapper DIV (#Mask) around everything.
Does anyone have an idea what methods were used on that particular site?
toggleClass()?'url('changingVar')'to'url(' + changingVar + ')'. Also, you should probably pick a better variable name thanchangingVar.