Could you please tell me how to achieve the following "scrolling background" effect: here
Thanks
Could you please tell me how to achieve the following "scrolling background" effect: here
Thanks
I'm not master but try to add the following CSS property: background-image: url("here goes the adress of your img");
What you want is called Parallax. Please, as instructed, read the rules about asking. It may do our jobs easier.
Here's a guide from W3C about how to do it:
Parallax scrolling is a web site trend where the background content (i.e. an image) is moved at a different speed than the foreground content while scrolling.
<!DOCTYPE html>
<html>
<head>
<style>
.parallax {
/* The image used */
background-image: url("https://www.w3schools.com/howto/img_parallax.jpg");
/* Set a specific height */
min-height: 500px;
/* Create the parallax scrolling effect */
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body>
<p>Scroll Up and Down this page to see the parallax scrolling effect.</p>
<div class="parallax"></div>
<div style="height:1000px;background-color:red;font-size:36px">
Scroll Up and Down this page to see the parallax scrolling effect.
This div is just here to enable scrolling.
</div>
</body>
</html>