No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to disable animation on components

    Help
    3
    5
    2217
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      manelclos last edited by

      Hi!

      How can I disable select’s q-popover animation? with lots of options it feels sluggish on mobile.

      Thanks!

      1 Reply Last reply Reply Quote 1
      • a47ae
        a47ae last edited by

        The animate class is hard coded into the component source, but you could override the CSS for the popover with this line:

        .q-popover.animate-scale {
            animation: none;
        }
        
        1 Reply Last reply Reply Quote 1
        • M
          manelclos last edited by

          Hi @a47ae, that worked perfectly! I’ll do the same for other animations, thanks!

          1 Reply Last reply Reply Quote 0
          • a47ae
            a47ae last edited by

            Glad it worked, but keep in mind that in future versions the animate-scaleclass name could change so keep an eye on this.

            1 Reply Last reply Reply Quote 0
            • S
              spectrolite last edited by spectrolite

              @rstoenescu could we have a prop for that in all animated components please?
              e.g. adding no-animation to a component would do that css override (or anything else appropriate internally to forfeit the animation effect)

              or maybe animation="none" if you plan on later allowing custom animations to be set through that same prop ( /wink /wink /nudge /nudge )

              1 Reply Last reply Reply Quote 2
              • First post
                Last post