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 ...