Skip to content

Commit

Permalink
speed up animation
Browse files Browse the repository at this point in the history
  • Loading branch information
disaerna committed Jan 20, 2025
1 parent 0bebbaf commit 8c84f2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/portals/my-pages/src/components/Header/Header.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const fixedHeader = style({
position: 'fixed',
transform: 'translateY(0)',
top: 0,
transition: 'transform 550ms cubic-bezier(0.4, 0.0, 0.2, 1)',
transition: 'transform 300ms cubic-bezier(0.4, 0.0, 0.2, 1)',
},
},
})
Expand All @@ -40,7 +40,7 @@ export const hideHeader = style({
[`screen and (max-width: ${theme.breakpoints.md}px)`]: {
position: 'fixed',
transform: 'translateY(-100%)',
transition: 'transform 550ms cubic-bezier(0.4, 0.0, 0.2, 1)',
transition: 'transform 300ms cubic-bezier(0.4, 0.0, 0.2, 1)',
top: 0,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const scrolledMenuVisible = style({
background: theme.color.blue100,
borderBottom: `1px solid ${theme.color.blue200}`,
transformOrigin: 'top',
animation: `${stretchKeyframe} 0.75s ease-in-out forwards`, // Appear animation
animation: `${stretchKeyframe} 0.3 ease-in-out forwards`,
},
})

Expand All @@ -209,7 +209,7 @@ export const scrolledMenuHidden = style({
background: theme.color.blue100,
borderBottom: `1px solid ${theme.color.blue200}`,
transformOrigin: 'top',
animation: `${shrinkKeyframe} 0.75s ease-in-out forwards`, // Disappear animation
animation: `${shrinkKeyframe} 0.3 ease-in-out forwards`,
},
})

Expand Down

0 comments on commit 8c84f2e

Please sign in to comment.