Skip to content

Commit

Permalink
feat: animate settings icon (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
fairlighteth authored Jan 16, 2024
1 parent a93c27c commit 34af837
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const Settings = styled(SettingsMod)`
> path,
> circle {
transition: stroke var(${UI.ANIMATION_DURATION}) ease-in-out;
stroke: currentColor;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,16 @@ export const ExpertModeIndicator = styled.div`
`

export const SettingsIcon = styled(SettingsIconRaw)`
height: 20px;
width: 20px;
--size: var(${UI.ICON_SIZE_NORMAL});
height: var(--size);
width: var(--size);
color: inherit;
opacity: 0.6;
transition: opacity var(${UI.ANIMATION_DURATION}) ease-in-out;
transition: opacity var(${UI.ANIMATION_DURATION}) ease-in-out, transform 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
&:hover {
opacity: 1;
transform: rotate(180deg);
}
> path,
Expand Down

0 comments on commit 34af837

Please sign in to comment.