diff --git a/front/src/pages/Main/MainButtonBox.tsx b/front/src/pages/Main/MainButtonBox.tsx index 9c8d782..5b75d0b 100644 --- a/front/src/pages/Main/MainButtonBox.tsx +++ b/front/src/pages/Main/MainButtonBox.tsx @@ -100,13 +100,20 @@ const screenTime = ( }, 1000); }; -const uiOn = (setScreen: React.Dispatch>) => { +const uiOn = ( + setScreen: React.Dispatch>, + refs: Array> +) => { const music = document.getElementById('musicController'); music ? (music.style.display = 'block') : null; const prev = document.getElementById('prevBtn'); prev ? (prev.style.display = 'block') : null; - + refs.forEach(ref => { + if (ref.current) { + ref.current.style.setProperty('animation', `fadeInUp 0s forwards`); + } + }); setScreen(false); }; @@ -258,7 +265,9 @@ const MainButtonBox = (props: MainButtonBoxProps) => { ) : null} ) : ( - uiOn(setScreen)} /> + uiOn(setScreen, [props.leftArrow, props.rightArrow])} + /> )} );