Skip to content

Commit

Permalink
[#22] feat : 깜빡이는 숫자 re-render 전에 opacity 0으로 사라지게 함
Browse files Browse the repository at this point in the history
  • Loading branch information
choibumsu committed Feb 28, 2021
1 parent 576301e commit 8018e96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/MainSection/Timer/DisplayTime/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export const DisplayTime: React.FC<DisplayTimeProps> = ({

setTimeout(() => {
setGuardAnimation(getAnimationObj(1))
setInAnimation(
getAnimationObj(0, `0s ${animationConfig.disappearDelay}ms`)
)
}, guardConfig.appearTime)
}, [nextTime])

Expand Down

0 comments on commit 8018e96

Please sign in to comment.