-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/#436-share-link-second-qa
- Loading branch information
Showing
11 changed files
with
57 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 18 additions & 3 deletions
21
src/pages/Start/StartAnimation/DownIconAnimation/StartDownIconAnimation.style.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
import styled from 'styled-components'; | ||
import styled, { keyframes } from 'styled-components'; | ||
import { IcDown } from '../../../../assets/svg'; | ||
|
||
export const DownIconWrapper = styled.div` | ||
display: flex; | ||
${({ theme: { mixin } }) => mixin.flexCenter({})}; | ||
position: relative; | ||
`; | ||
|
||
export const DownIcon = styled(IcDown)` | ||
const frameInAnimationUp = keyframes` | ||
0% { | ||
opacity: 1; | ||
transform: translateY(0%); | ||
} | ||
100%{ | ||
opacity: 0; | ||
transform: translateY(-100%); | ||
} | ||
`; | ||
|
||
export const DownIcon = styled(IcDown)<{ $isVisible: boolean }>` | ||
position: absolute; | ||
top: 4rem; | ||
width: 4rem; | ||
color: ${({ theme: { colors } }) => colors.G_07}; | ||
opacity: ${({ $isVisible }) => ($isVisible ? 1 : 0)}; /* 스크롤에 따라 투명도 조절 */ | ||
animation: ${({ $isVisible }) => ($isVisible ? 'none' : frameInAnimationUp)} 2s forwards; /* isVisible에 따라 애니메이션 적용 */ | ||
`; |
20 changes: 16 additions & 4 deletions
20
src/pages/Start/StartAnimation/DownIconAnimation/StartDownIconAnimation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters