Skip to content
Discussion options

You must be logged in to vote

It's not possible with the current style of daisyUI because when we add/remove class names, one tab loses style and the other tab gains the style. so unfortunately we can't animate it.

I can't say it's not possible without JS but it will require some strict rules (like forcing all tabs to have the same width) and it needs some hacky HTML/CSS.

As far as I know all tabs with animated indicator we see on the web are using JS to animate one indicator to move positions and resize to the current active tab.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants