Jump to content

Change background animation on mobile

Recommended Posts

https://tetra-apricot-49rc.squarespace.com/

Code: Svaneke

 

Hi

I´m trying to change a setting. The "Scale X" value under "shape & size" on the "surface" background animation on mobile only, but i dont know to target it correctly with css. The animation stretches across the viewport, which of course changes dramatically when switching from desktop to mobile, but the value stays the same.

 

I found a code that can remove the animation altogether - but id rather figure out how to target the "Scale X" value.

@media only screen and (max-width: 767px) {
  section[data-section-id="643e8837c9b24875cf3a8a0a"] .section-background {
    display:none;
  }
}

I´ve never learned coding properly, but copy+paste I can manage 💩

 

All help is greatly appreciated.

Thanks

Screenshot 2023-04-22 at 20.46.02.png

Screenshot 2023-04-22 at 20.46.09.png

Edited by www_uffe_one
Link to comment
  • Replies 0
  • Views 95
  • 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.