Jump to content

Custom CSS for creating an arch transition on an image block doesn't work on mobile

Recommended Posts

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

I followed this tutorial https://ryandejaegher.com/how-to-make-wavy-section-transitions-in-squarespace-7.1/#comment-section to create an "arch" transition on the bottom of the first image block on each page for a more organic feel. Everything looks as desired on a desktop/laptop screen:822352971_ScreenShot2022-01-13at12_52_59PM.thumb.png.3d00875b178e073f7151e5502b7560d8.png

The mobile preview in my Squarespace account also looks correct:

 854315535_ScreenShot2022-01-13at12_08_44PM.png.943b9850dea05bdd7119a7bde23741a6.png

However, the mobile appearance of the published site is different. The nice, pretty arch is transformed into some sort of trapezoid instead:

IMG_D744CE0E7680-1.thumb.jpeg.6965f62710756035bb78c17faab21c1d.jpeg

Does anyone know how to correct this? I appreciate your help, thank you!

Here is the code I have saved in Custom CSS:

// Adding arch transition to photo on Weddings page //
[data-section-id="61d3af566a70606092df0ff5"]:after {
  position: absolute;
  content: '';
  width: 100%;
  height: 120px;
  bottom: 0;
  left: 0;
  background: #e6ded1;

  /* Use the ID from your SVGs Clip Path*/
  clip-path: url(#archDown);
}
 

And the code for the .svg arch shape saved into the Footer Injection so it can be used on multiple pages:

// Adding arch transition to photo on Weddings page //
[data-section-id="61d3af566a70606092df0ff5"]:after {
  position: absolute;
  content: '';
  width: 100%;
  height: 120px;
  bottom: 0;
  left: 0;
  background: #e6ded1;

  /* Use the ID from your SVGs Clip Path*/
  clip-path: url(#archDown);
}

Edited by Mikey_Costello
Added the CSS I am using to make the question easier to answer
Link to comment
  • Replies 0
  • Views 419
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.