7. Animations and Transitions
Activity 7.01: Building a Messages App with Transition and GSAP
Solution:
Perform the following steps to complete the activity:
Note
To access the code files for this activity, visit https://packt.live/399tZ3Y.
- We will reuse the code created in Chapter 6, Routing for the Messageapp so we have all the routing setup accordingly.The templatesection ofsrc/views/MessageEditor.vuewill be as follows:<template>   <div>     <textarea       ref="textArea"       @change="onChange($event)"     >     </textarea>     <button @click="onSendClick()">Submit</button>   </div> </template> 
- Next, the scriptsection ofsrc/views/MessageEditor.vueshould contain logic for both clicking on and leaving the route...
 
                                             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                