Skip to content

Commit

Permalink
Merge pull request #106 from SOPT-all/fix/#103/product-card-hover
Browse files Browse the repository at this point in the history
[FIX] 상품 카드 호버 효과 변경
  • Loading branch information
seong-hui authored Nov 29, 2024
2 parents f4f24e9 + d869694 commit 5e2a311
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const productListContainer = css`
display: flex;
justify-content: space-between;
width: 86.5rem;
height: 33rem;
height: 34rem;
padding: 0 1.3rem;
overflow: hidden;
`;
Expand Down
5 changes: 4 additions & 1 deletion src/components/product/ProductCardStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export const productContainer = (theme: Theme, width: string, hoverLarge: boolea
background-color: ${theme.colors.white};
border-radius: ${hoverLarge ? '12px' : '16px'};
transition:
transform 0.2s ease-in-out,
box-shadow 0.2s ease-in-out;
&:hover {
z-index: 1;
Expand All @@ -18,7 +22,6 @@ export const productContainer = (theme: Theme, width: string, hoverLarge: boolea
${hoverLarge
? `
transform: scale(1.13, 1.065);
transform-origin: top center; /* 상단의 시작 지점을 고정 */
border-radius: 16px;
`
: `
Expand Down

0 comments on commit 5e2a311

Please sign in to comment.