Skip to content

Commit

Permalink
feat: add slight opacity increase as buttons appear
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcath committed Aug 14, 2023
1 parent a119b94 commit a590acb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/lib/components/boxes/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ export const Button: FunctionComponent<{
}

const variants = {
initial: {scale: newTab ? 1 : 0.7, transition: {...spring, delay: 0}},
initial: {
opacity: 0.8,
scale: newTab ? 1 : 0.7,
transition: {...spring, delay: 0}
},
active: () => {
return {scale: 1, transition: {...spring, delay: !open ? delay : 0}}
return {
opacity: 1,
scale: 1,
transition: {...spring, delay: !open ? delay : 0}
}
},
hovering: {scale: 0.8, transition: {...spring, delay: 0}}
}
Expand Down

0 comments on commit a590acb

Please sign in to comment.