♻️(frontend) refactor pulse_mic into pulse_background
Make the keyframe more generic with an explicit naming.
This commit is contained in:
committed by
aleb_the_flash
parent
c270299179
commit
1e0e495cd8
@@ -116,10 +116,10 @@ const config: Config = {
|
|||||||
'80%': { transform: 'rotate(20deg)' },
|
'80%': { transform: 'rotate(20deg)' },
|
||||||
'100%': { transform: 'rotate(0)' },
|
'100%': { transform: 'rotate(0)' },
|
||||||
},
|
},
|
||||||
pulse_mic: {
|
pulse_background: {
|
||||||
'0%': { color: 'primary', opacity: '1' },
|
'0%': { opacity: '1' },
|
||||||
'50%': { color: 'primary', opacity: '0.8' },
|
'50%': { opacity: '0.65' },
|
||||||
'100%': { color: 'primary', opacity: '1' },
|
'100%': { opacity: '1' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
tokens: defineTokens({
|
tokens: defineTokens({
|
||||||
|
|||||||
@@ -84,9 +84,12 @@ const MicIndicator = ({ participant }: MicIndicatorProps) => {
|
|||||||
<RiMicOffFill color={'gray'} />
|
<RiMicOffFill color={'gray'} />
|
||||||
) : (
|
) : (
|
||||||
<RiMicFill
|
<RiMicFill
|
||||||
style={{
|
className={css({
|
||||||
animation: isSpeaking ? 'pulse_mic 800ms infinite' : undefined,
|
color: isSpeaking ? 'primaryDark.300' : 'primaryDark.50',
|
||||||
}}
|
animation: isSpeaking
|
||||||
|
? 'pulse_background 800ms infinite'
|
||||||
|
: undefined,
|
||||||
|
})}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user