Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
At the moment there are little scrolling animations that appear on my site (stimagz.com), and just help add a bit of life to each section as you scroll. These look great on desktop, but rather laggy on mobile so I want to get rid of them.
Unfortunately, there doesn't seem to be a different option for that in my theme settings, only a universal on or off button.
Any ideas? Thank you!
You can add custom css to disable animations on mobiles in theme settings. What I did was to make all animation durations 0s and also delays. That way it does not animate. It's not the cleanest solution but it works.
Hope this will help you guys if you struggle with the same issue!
@media only screen and (max-width: 768px) {
* {
animation-duration: 0s !important;
animation-delay: 0s !important;
}
}
I changed it to max-width:749px, that's what my theme uses as mobile breakpoint
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024