Skip to content

Commit 113437c

Browse files
committed
[FE] feat: Actions 아이콘들에 애니메이션 추가 (#74)
1 parent 39dfab6 commit 113437c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/frontend/src/components/guild/VoiceChannelActions/index.tsx

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { motion } from 'framer-motion';
12
import { BiSolidVideo, BiSolidVideoOff } from 'react-icons/bi';
23
import { LuScreenShare } from 'react-icons/lu';
34
import { TbConfetti, TbTriangleSquareCircle } from 'react-icons/tb';
@@ -16,10 +17,22 @@ const VoiceChannelActions = () => {
1617
soundBoard: <TbConfetti size={24} />,
1718
};
1819

20+
const bounceAnimation = {
21+
y: [0, -5, 0],
22+
transition: {
23+
duration: 0.6,
24+
repeat: 3,
25+
repeatType: 'reverse' as const,
26+
ease: 'easeInOut',
27+
},
28+
};
29+
1930
return (
2031
<S.VoiceChannelActions>
2132
{Object.entries(actions).map(([key, value]) => (
22-
<S.Action key={key}>{value}</S.Action>
33+
<motion.div key={key} initial={{ y: 0 }} whileHover={bounceAnimation}>
34+
<S.Action key={key}>{value}</S.Action>
35+
</motion.div>
2336
))}
2437
</S.VoiceChannelActions>
2538
);

src/frontend/src/pages/VideoPage/styles.ts

+2
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ export const EmptyParticipant = styled.div`
1313
justify-content: center;
1414
1515
width: 100%;
16+
17+
background-color: ${({ theme }) => theme.colors.black};
1618
`;

0 commit comments

Comments
 (0)