How to do it...

We're still looking for the perfect transition for a taxi company (the same as in the preceding recipe) that will entertain our clients while waiting for a taxi. We have a button to call a cab and a little taxi emoji that will appear when we make a reservation.

Before anything else, add the Velocity library as a dependency to your project--https://cdnjs.cloudflare.com/ajax/libs/velocity/1.2.3/velocity.min.js.

Here is the HTML to create the skeleton of our interface:

<div id="app">   <button @click="taxiCalled = true">     Call a cab   </button>   <p v-if="taxiCalled"></p> </div>

Our Vue model is very simple and consists only of ...

Get Vue.js 2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.