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
    1. Home
    2. Tinny
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 5
    • Best 0
    • Groups 0

    Tinny

    @Tinny

    0
    Reputation
    1
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Tinny Follow

    Latest posts made by Tinny

    • RE: How to use transitions between routes?

      @rstoenescu I currently have a unique QHeader in each page, as they are quite different between the pages (e.g. some headers have a button, some two, some none, etc…). That in itself works fine.

      The problem I encountered is on the single page I don’t have a QHeader: the transition doesn’t really work, as I tried to describe in my first post in this thread. It’s very easy to reproduce on a Capacitor app, as per my explanation in that post. That’s why I asked about transitions and if I’m maybe using them wrong.

      Because of that issue, I have currently disabled all transitions in my app.

      (Regardless, thank you for your awesome framework! I only discovered Quasar recently, and settled on it after having tried and discarded several other frameworks over the course of several weeks of testing.)

      posted in Help
      T
      Tinny
    • RE: How to use transitions between routes?

      Thanks a bunch @jadedRepublic !
      With that setup would need to dynamically set header for each page (as I wrote earlier), correct?

      posted in Help
      T
      Tinny
    • RE: How to use transitions between routes?

      @dobbel said in How to use transitions between routes?:

      https://quasar.dev/quasar-cli/cli-documentation/boot-files

      Simple way is to check out a new quasar project and selected i18n as option. Then you have an example how boot files work.

      1. add boot file foo.js in the boot folder
      2. add line with foo in quasar.conf under boot

      this is the content of my bootfile: ( i don’t know how to format a block as code)

      import Vue from “vue”;
      import VuePageTransition from “vue-page-transition”;

      Vue.use(VuePageTransition);

      Thanks again, and sorry for the late reply!

      I just tried it, and it “kind of” works: there is a transition animation, but during the transition/animation, the header bar is rendered right below the bottom border of the normal position of the header, and then snaps up to its correct position (does that make sense)?

      I suspect I am not using the transitions (or quasar) correctly, but I currently have done this, as per the instructions:

      <vue-page-transition name="fade-in-right">
        <router-view/>
      </vue-page-transition>
      

      in MainLayout.vue. Each page then contains its own q-header, as the headers on each page have different buttons (or no buttons).

      @jadedRepublic said in How to use transitions between routes?:

      I would recommend having a second router view, one for all of your main pages and the transition for all child pages of a main page e.g…

      I’m not sure I quite understand, but wouldn’t that mean you have a single header for all the pages, so you simply transition the content below the header, while you dynamically set the content of the single header?

      posted in Help
      T
      Tinny
    • RE: How to use transitions between routes?

      Awesome, I’ll check it out. Thanks!

      I’m a Quasar noob though, so how/what do I need to add to the boot file?

      posted in Help
      T
      Tinny
    • RE: How to use transitions between routes?

      @metalsadman said in How to use transitions between routes?:

      <transition
        enter-active-class="animated fadeIn"
        leave-active-class="animated fadeOut"
        appear
        :duration="300"
      >
        <router-view />
      </transition>
      

      There seems to be a bug when you use this transition without a q-header (on mobile/capacitor at least): the text is displayed at the bottom of the screen during the transition, and then jumps up to the top to its correct position when the transition is finished.
      You can test with this:

      <template>
        <q-page>
          abc
        </q-page>
      </template>
      

      With q-header this “jump” isn’t visible, probably because the header pushes the text below the bottom edge of the screen.

      Is there any workaround for this, or any other transitions that can be used that gives a “mobile” experience and that works smoothly?

      posted in Help
      T
      Tinny