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
Zen Coding It is a text editor plugin. In a text ...
When I was helping someone adjust the code today,...
Recently, I started upgrading my blog. In the proc...
There is a table in the project that needs to be ...
Preface Engineers working in the Linux environmen...
When I was writing join table queries before, I a...
1. Uninstalling MySQL 5.7 1.1查看yum是否安裝過mysql cd y...
Table of contents A murder caused by ERR 1067 The...
In general : [1 important flag] > [4 special fl...
background Recently, I executed a DML statement d...
Table of contents Overview in operator refinement...
Hi, everyone; today is Double 12, have you done a...
Table of contents Preface 1. The significance of ...
Table of contents 1 Review 2 Five strategies for ...
Classification of color properties Any color can ...