Skip to content

Commit

Permalink
add blinking animation for confirm readiness
Browse files Browse the repository at this point in the history
  • Loading branch information
Asvarox committed Jan 3, 2025
1 parent 74681b7 commit 8871887
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function ConfirmReadiness({ onConfirm }: Props) {
};

return visible ? (
<Form>
<Form className="animate-blink">
<MenuContainer>
<ReadyButton data-test="ready-button" onClick={confirm}>
Ready
Expand Down
15 changes: 15 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,23 @@ module.exports = {
transform: 'scale(0)',
},
},
blink: {
'100%': {
backgroundColor: 'rgba(0, 0, 0, 0.85)',
},
'30%': {
backgroundColor: 'rgba(0, 0, 0, 0.85)',
},
'50%': {
backgroundColor: 'rgba(200, 200, 200, 0.85)',
},
'0%': {
backgroundColor: 'rgba(0, 0, 0, 0.85)',
},
},
},
animation: {
blink: 'blink 1050ms ease-in-out infinite both',
calibrationPulse: 'calibrationPulse 1.5s ease 1',
gradient: 'gradient 15s ease infinite',
focused: 'focused 1000ms ease-in-out infinite both',
Expand Down

0 comments on commit 8871887

Please sign in to comment.