moultonalex Posted September 7 Share Posted September 7 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
Solution tuanphan Posted September 10 Solution Share Posted September 10 Change your first code to this @media screen and (max-width: 991px) { #page * { transform: unset !important; transition-delay: unset !important; transition: unset !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
moultonalex Posted September 11 Author Share Posted September 11 That worked perfectly – thanks so much! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment