Jump to content

How to enable parallax with images to scale for mobile site

Recommended Posts

Site URL: https://www.jennamacphoto.com

Hi there, 

I was hoping someone could help make my mobile site look exactly like the desktop version (www.jennamacphoto.com). The only issue is the index blocks have been cropped in mobile view so you can't see the image properly. I would like to keep the parallax text overlay function if possible too please. 

If not, could you please tell me how to disable mobile view please? 

 

Thanks so much!! Any help would be appreciated! 

Link to comment
  • Replies 3
  • Views 672
  • Created
  • Last Reply

Top Posters In This Topic

On 10/4/2021 at 8:57 AM, MDavis said:

Site URL: https://www.jennamacphoto.com

Hi there, 

I was hoping someone could help make my mobile site look exactly like the desktop version (www.jennamacphoto.com). The only issue is the index blocks have been cropped in mobile view so you can't see the image properly. I would like to keep the parallax text overlay function if possible too please. 

If not, could you please tell me how to disable mobile view please? 

 

Thanks so much!! Any help would be appreciated! 

Try adding to Design > Custom CSS > Save & reload the site

/* Parallax on mobile */
@media screen and (max-width:640px) {
body.homepage .Parallax-item img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
}
section#hero-image-foster {
    height: 200px;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 10/13/2021 at 9:46 AM, MDavis said:

Thank you!! Do you know how I do this for every page please? 

Try this new code

/* Parallax on mobile */
@media screen and (max-width:640px) {
.Parallax-item img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
    top: 0 !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.