Skip to content

Commit

Permalink
feat: a,b버튼 transition 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeyoung103 committed Jan 7, 2024
1 parent d42aec1 commit cafe942
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/Topic/TopicCreate.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const AButton = styled.button<{ selected: 'A' | 'B' | null }>`
background-color: transparent;
filter: ${(props) => (props.selected === 'B' ? 'blur(1px)' : 'blur(0px)')};
opacity: ${(props) => (props.selected === 'B' ? 0.3 : 1)};
transition: 0.3s;
&::after {
position: absolute;
Expand All @@ -75,6 +76,7 @@ export const BButton = styled.button<{ selected: 'A' | 'B' | null }>`
background-color: transparent;
filter: ${(props) => (props.selected === 'A' ? 'blur(1px)' : 'blur(0px)')};
opacity: ${(props) => (props.selected === 'A' ? 0.3 : 1)};
transition: 0.3s;
&::after {
position: absolute;
Expand Down

0 comments on commit cafe942

Please sign in to comment.