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

    Transition on a q-modal

    Help
    2
    2
    385
    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.
    • E
      Evan last edited by

      Hello, I can’t figure out how make a transition work on a centered minimized q-modal.
      When it appears, I’d like fadeInUp to happen and fadeOutDown when it closes.
      Could someone please provide an example? Thank you

      i5dr0id 1 Reply Last reply Reply Quote 1
      • i5dr0id
        i5dr0id @Evan last edited by

        @evan first you need to register the transition in quasar.conf.js like this

        animations: [ 'fadeInUp', 'fadeOutDown']
        

        then for your modal component do this

        <q-modal
        enter-class='animated fadeInUp'
        leave-class='animated fadeOutDown'
        minimized
        v-model="opened">
         <h4>Basic Modal</h4>
         <q-btn color="primary" @click="openModalCart = false" label="Close" />
         </q-modal>
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post