Explanation
The CSS property used to control the scrolling of an image in the background is background-attachment. This property can take one of the following values:
- scroll: The background image scrolls along with the containing element's content.
- fixed: The background image remains fixed as the user scrolls, creating a parallax effect.