Commit 9776cd10 by 李伟康

commit 修改动画

1 parent 24e882e3
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
data () { data () {
return { return {
tabIndex: 0, tabIndex: 0,
borderLeft: 'left:50%;' borderLeft: 'display: none;'
} }
}, },
mounted () { mounted () {
...@@ -37,7 +37,10 @@ export default { ...@@ -37,7 +37,10 @@ export default {
}, },
setBorderLeft(){ setBorderLeft(){
let {tabIndex} = this 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 { ...@@ -77,7 +80,7 @@ export default {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
transition: all .25s; transition: all .15s;
} }
} }
......
...@@ -5,8 +5,10 @@ ...@@ -5,8 +5,10 @@
@keyframes show-view{ @keyframes show-view{
0%{ 0%{
opacity: 0; opacity: 0;
transform: scale(0);
} }
100%{ 100%{
opacity: 1; opacity: 1;
transform: scale(1);
} }
} }
\ No newline at end of file \ 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!