Jump to content

How to enable parallax with images to scale for mobile site

Recommended Posts

Posted

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! 

  • Replies 7
  • Views 1.9k
  • Created
  • Last Reply

Top Posters In This Topic

Posted
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!)

Posted
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!)

  • 2 years later...
Posted
On 5/17/2024 at 4:09 AM, Katrien_hetweblabo said:

I'm having the same issue on this website, could you help me out @tuanphan
I need it to be resized on mobile for all full width banners. 
Tia

https://untold-publishing.com/ 

You mean 5 images on homepage?

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!)

  • 2 weeks later...

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.