How to disable animations but only on mobile? - Streamline theme

Topic summary

A user is experiencing laggy scrolling animations on mobile devices while they display smoothly on desktop. They want to disable these animations specifically for mobile views.

Solution provided:

  • Add custom CSS in theme settings targeting mobile devices using a media query
  • Set animation-duration and animation-delay to 0s with !important flags
  • Use @media only screen and (max-width: 768px) or adjust the breakpoint to match the theme’s mobile breakpoint (e.g., 749px)

Key limitation:

  • The theme settings only offer a universal on/off toggle for animations, not separate desktop/mobile controls
  • The CSS workaround is functional but acknowledged as “not the cleanest solution”

The discussion includes a code snippet demonstrating the implementation and appears resolved with this workaround approach.

Summarized with AI on November 16. AI used: claude-sonnet-4-5-20250929.

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;
  }
}