I'm trying to add a fixed background image to my Squarespace site using the York template. Site can be viewed here (www.newinkmedia.co).
Out of the box, the York template does not support fixed background images so I'm going the custom CSS route. I would like the background image to be centered, contained, and fixed when the user scrolls. Everything seems to be fine on desktop but running into some issues on mobile where the image is enlarged and not fixed.
Screenshots and Custom CSS below:
.overflow-wrapper {
-webkit-transition: background-color 100ms linear;
-moz-transition: background-color 100ms linear;
-ms-transition: background-color 100ms linear;
-o-transition: background-color 100ms linear;
transition: background-color 100ms linear;
overflow-x: hidden;
overflow-y: auto;
background-color: #ffffff;
background-attachment: fixed;
background-repeat: no-repeat;
background-size: contain;
background-position: center top;
background-image: url("https://static1.squarespace.com/static/5ac6c7bd5417fc86faa1ce9d/t/5acd6b972b6a28a577ff7603/1523411863575/newink_concept_v2ai-09.jpg");
}
Let me know what you think. Greatly appreciate the help.