How does background-attachment: fixed work in CSS?

Subh Prakash Singh
Invent the Future
The background-attachment: fixed property locks the background image to the viewport, so it doesn’t move when the page scrolls. This is commonly used for parallax effects.









