Skip to content

Commit

Permalink
design: transition 시간 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
ww8007 committed Sep 29, 2023
1 parent 0edc0b7 commit e42d1fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common-ui/Collapsible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ToggleCard = styled.div`
const IconSection = styled.div<{ open: boolean }>`
margin-right: 15px;
display: inline-block;
transition: transform 0.3s ease;
transition: transform 0.5s ease;
transform: rotate(${(props) => (props.open ? '90deg' : '0deg')});
`;

Expand All @@ -44,10 +44,10 @@ const ToggleBody = styled.div<{ open: boolean }>`
flex-direction: row;
align-items: center;
max-height: ${(props) => (props.open ? getRem(250) : '0')};
max-height: ${(props) => (props.open ? getRem(500) : '0')};
opacity: ${(props) => (props.open ? '1' : '0')};
overflow: hidden;
transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
transition: all 0.3s ease;
gap: ${getRem(10)};
background: #313131;
Expand Down

0 comments on commit e42d1fb

Please sign in to comment.