Skip to content

Commit 15367aa

Browse files
committed
πŸ’„ design(#170): νŽΈμ§€ 전달 μ™„λ£Œ νŽ˜μ΄μ§€ float μ• λ‹ˆλ©”μ΄μ…˜ μΆ”κ°€
1 parent a35cf87 commit 15367aa

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

β€Žsrc/app/send/complete/page.tsxβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import OauthButton from '@/components/signup/OauthButton';
66
import { OAUTH } from '@/constants/oauth';
77
import { SEND_COMPLETE_SUBTEXT } from '@/constants/send/message';
88
import { sendLetterState } from '@/recoil/letterStore';
9+
import { float, letterFloat } from '@/styles/animation';
910
import { theme } from '@/styles/theme';
1011
import { OAuthType } from '@/types/login';
1112
import Image from 'next/image';
@@ -171,6 +172,7 @@ const ImageWrapper = styled.div`
171172
display: flex;
172173
align-items: center;
173174
justify-content: center;
175+
animation: ${letterFloat} 2s ease-in-out infinite;
174176
175177
@media (max-height: 680px) {
176178
width: 400px;

β€Žsrc/styles/animation.tsβ€Ž

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,16 @@ export const float = keyframes`
2222
100% {
2323
transform: translate(-50%, 0);
2424
}
25+
`;
26+
27+
export const letterFloat = keyframes`
28+
0% {
29+
transform: translate(-50%, -48%);
30+
}
31+
50% {
32+
transform: translate(-50%, -52%);
33+
}
34+
100% {
35+
transform: translate(-50%, -48%);
36+
}
2537
`;

0 commit comments

Comments
Β (0)