Skip to content

Commit

Permalink
fix initial
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvoskamp committed Sep 6, 2023
1 parent a5f3413 commit 6521615
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/ui/src/composites/wui-tabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,8 @@ export class WuiTabs extends LitElement {
const activeBtnTextBounds = activeBtnText?.getBoundingClientRect()

if (passiveBtn && passiveBtnText && !initialAnimation) {
animate(passiveBtnText, { opacity: 0 }, { duration: initialAnimation ? 0 : 0.25 })
animate(
passiveBtn,
{ width: `20px` },
{ duration: initialAnimation ? 0 : 0.25, delay: initialAnimation ? 0 : 0.05 }
)
animate(passiveBtnText, { opacity: 0 }, { duration: 0.25 })
animate(passiveBtn, { width: `20px` }, { duration: 0.25, delay: 0.05 })
}

if (activeBtn && activeBtnBounds && activeBtnTextBounds && activeBtnText) {
Expand Down

0 comments on commit 6521615

Please sign in to comment.