Commit 9776cd10 by 李伟康

commit 修改动画

1 parent 24e882e3
......@@ -23,7 +23,7 @@ export default {
data () {
return {
tabIndex: 0,
borderLeft: 'left:50%;'
borderLeft: 'display: none;'
}
},
mounted () {
......@@ -37,7 +37,10 @@ export default {
},
setBorderLeft(){
let {tabIndex} = this
this.borderLeft = `left:${this.$refs[`tab-${tabIndex}`][0].$el.offsetLeft}px`
this.borderLeft = `left:${this.$refs[`tab-${tabIndex}`][0].$el.offsetLeft}px;`
setTimeout(()=>{
this.borderLeft += `display:block;`
},100)
}
}
}
......@@ -77,7 +80,7 @@ export default {
position: absolute;
left: 0;
top: 0;
transition: all .25s;
transition: all .15s;
}
}
......
......@@ -5,8 +5,10 @@
@keyframes show-view{
0%{
opacity: 0;
transform: scale(0);
}
100%{
opacity: 1;
transform: scale(1);
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!