quasar icon indicating copy to clipboard operation
quasar copied to clipboard

[request] Floating Action Button Dissapear / Appear Animation

Open jyan-zarate opened this issue 9 years ago • 3 comments

Per Material Design (FAB >> Lateral Screens), a FAB should dissapear and appear with an animation when switching screens, as seen here and here. Currently there's no method built into Quasar to make the FAB dissapear or appear with an animation, so it'd be nice if there were.

jyan-zarate avatar Jul 20 '17 15:07 jyan-zarate

In v0.14 you should be able to achieve the desired output by using Transitions.

<q-fixed-position corner="bottom-right" :offset="[18, 18]">
  <q-transition appear enter="zoomIn" leave="zoomOut">
    <q-btn round color="primary" @click="method">
      <q-icon name="mail" />
    </q-btn>
  </q-transition>
</q-fixed-position>

In my opinion, this is a more flexible approach, then bake the transition into the FABs directly.

a47ae avatar Jul 21 '17 14:07 a47ae

@a47ae I can't believe I didn't take a look at QTransition, thank you!

jyan-zarate avatar Jul 21 '17 15:07 jyan-zarate

Haha, I am sometimes surprised myself what Quasar offers out of the box, for example, the nifty little helper functions can come in really handy too. :D

a47ae avatar Jul 21 '17 15:07 a47ae