This article example shares the specific code of Vue to achieve the interface sliding effect for your reference. The specific content is as follows Project requirements + renderings1. Project requirements [Click the bottom navigation bar and there will be a sliding effect when switching pages] 2. Rendering Code + key code analysis1. Code Botnav.vue navigation bar interface <template> <div> <transition :name="transitionName"> <router-view class="Router"></router-view> </transition> <template> <script> export default { data () { return { // Slide from left to right transitionName:'slide-right', } </script> <style lang="stylus"> .Router absolute position width 100% transition all 0.8s ease .slide-left-enter, .slide-right-leave-active opacity 0 -webkit-transform translate(100%,0) transform translate(100%,0) .slide-left-leave-active, .slide-right-enter opacity 0 -webkit-transform translate(-100%,0) transform translate(-100%,0) </style> The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: How to enable JMX monitoring through Tomcat
>>: Detailed explanation of MySQL cursor concepts and usage
This article example shares the specific code of ...
Usually the goal of building a website is to have...
Starting and shutting down Tomcat under Linux In ...
Preface The database deadlocks I encountered befo...
Table of contents Background Description Creating...
Some time ago, during development, I encountered ...
Experimental environment: MYSQL 5.7.22 Enable bin...
Preface The server used by the blogger was purcha...
Based on past experience, taking notes after comp...
Arrow function is a new feature in ES6. It does n...
Let's make a simple 3D Rubik's Cube today...
Table of contents 01 Introduction to YAML files Y...
Recently, when I was working on a project, I was ...
Demand background A statistical interface, the fr...
Today I wanted to change the mysql port, but I fo...