Try to search your question here, if you can't find : Ask Any Question Now ?

My moving background won't stretch, but rather have a static place. I can't seem to change that

HomeCategory: stackoverflowMy moving background won't stretch, but rather have a static place. I can't seem to change that
Avatarjohn asked 3 months ago

So I have a moving background made with javascript and now I want to stretch my background. I used and search for many ways, but couldn’t find any solutions. It won’t show me the text (it’s behind the background) and the picture stays static.

I already tried those solutions with background: cover for example.

This is my css code for the background picture.

(I still can’t seem to post the css code in here. So I will be putting it in the comments.)

Maybe this is also useful for the problem at hand, but i already have this working.

var i=1;

function move(){
    i++;
    document.getElementById("section1").style.backgroundPosition=i+"px";
}

window.onload = function(){
    var move1 = setInterval(move, 30);
}
1 Answers
Best Answer
AvatarMatthias answered 3 months ago
Your Answer

2 + 13 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com