Jump to content

Disable site-wide flex animation on mobile except for mobile header

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://greyhound-sailfish-a8f6.squarespace.com/

I need to disable site-wide animations on mobile but not on the header, because unsetting the transform affects the mobile menu burger.

When I add this CSS, it accurately removes animations on mobile BUT it also removes all lines except one from the menu burger:

@media screen and (max-width: 991px) {
  * {
    transform: unset !important;
    transition-delay: unset !important;
    transition: unset !important;
  }
}

So I was trying this instead, in an attempt to stop the header from being affected. It doesn't work.

@media screen and (max-width: 991px) {
  not(.header-element) * {
    transform: unset !important;
    transition-delay: unset !important;
    transition: unset !important;
  }
}

Any ideas?

site password is: oceans

Link to comment
  • Replies 2
  • Views 433
  • Created
  • Last Reply

Top Posters In This Topic

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.