Blogger Information
Blog 47
fans 0
comment 2
visits 102686
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
vue实现右侧划入
拾一枝樱花的博客
Original
1753 people have browsed it

Html

  1. 点击触发的html
  2. <div @click="silderMask"></div>
  3. 滑动层中的html
  4. <transition name="slide-fade">
  5. <div v-show="isShow"></div>
  6. </transition>

Css

  1. .slide-fade-enter,.slide-fade-leave-to {
  2. transform: translateX(100%); -webkit-transform: translateX(100%);
  3. }
  4. .slide-fade-enter-active,.slide-fade-leave-active {
  5. will-change: transform; transition: all 0.3s ease;
  6. }

Js

  1. var vm = new Vue({
  2. data:{
  3. isSubordinate: false,
  4. isBoss: false
  5. },
  6. mounted:function(){
  7. },
  8. methods: {
  9. silderMask: function () {
  10. this.isShow = true
  11. }
  12. }}).$mount('#nev');
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post