I recently incorporated a parallax effect into the image gallery section of my website. While everything seems to be functioning perfectly in standard desktop and responsive modes on various browsers, I have encountered an issue when attempting to view the same section on my iPhone 6. On mobile, the background within the section fails to stay fixed and instead stretches across the entire content area, resulting in a heavily zoomed-in and pixelated background.
Here is the HTML code for this particular section:
<section id="projects">
<div class="parallax">
<div class="container" style="padding-bottom: 30px;">
<div class="row">
<h3 class="section-header-inverse wow fadeInUp" data-wow-delay="200ms" data-wow-duration="500ms">Our Projects</h3>
</div>
<div class="row">
<div class="container">
<div class="gallery">
<div class="row">
<div class="container">
// Rest of the HTML code goes here
</div>
</div>
</div>
</div>
</div>
</div>
</section>
This is the CSS styling applied to this section:
#projects {
text-align: center;
padding-bottom: 2%;
}
.parallax {
background-image: url('../images/backgrounds/bg.jpg');
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
// More CSS styles go here
Despite my attempts to add vendor prefixes to the properties, the issue persists. I would greatly appreciate any assistance or guidance in resolving this issue and ensuring that the parallax effect functions correctly as intended.
You can access the website here.