'How to remove v-tab transition slide in Vuetify?
Is it possible to remove transition slide when click v-tabs
?
<v-tabs v-model="tab" :transition="false" :reverse-transition="false">
<v-tab href="#tab1" >
tab1
</v-tab>
<v-tab href="#tab2">
tab2
</v-tab>
</v-tabs>
This is not working
Solution 1:[1]
Possible when you use :transition=false with v-tab-item:
<v-tabs v-model="tab">
<v-tab key="registration">Registration</v-tab>
<v-tab key="login">Login</v-tab>
<v-tabs-items v-model="tab">
<v-tab-item key="registration" :transition="false">
some content
</v-tab-item>
<v-tab-item key="login" :transition="false">
some content
</v-tab-item>
</v-tabs-items>
</v-tabs>
Unfortunately :transition="false" is not working on v-tabs level ("vuetify": "2.4.0")
Solution 2:[2]
Write this in your scss style tag:
.v-tabs {
::v-deep {
.v-tabs-slider-wrapper {
transition: none;
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Freestyle09 |