add flickering animation on splash screen initial text
This commit is contained in:
parent
f6cada048b
commit
e510ba619e
2 changed files with 18 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ import { ClientContextProvider } from '../../hooks/useClient';
|
|||
import { InitialSyncSplashScreen } from './InitialSyncSplashScreen';
|
||||
import { AutoDiscovery } from './AutoDiscovery';
|
||||
import { ClientRootOptions } from './ClientRootOptions';
|
||||
import { FlickerText } from '../../styles/Animations.css';
|
||||
|
||||
type ClientRootProps = {
|
||||
children: ReactNode;
|
||||
|
|
@ -81,7 +82,7 @@ export function ClientRoot({ children }: ClientRootProps) {
|
|||
alignItems="Center"
|
||||
gap="200"
|
||||
>
|
||||
<Text size="T200" align="Center">
|
||||
<Text className={FlickerText} size="T200" align="Center">
|
||||
Sparking...
|
||||
</Text>
|
||||
<ProgressBar
|
||||
|
|
|
|||
|
|
@ -45,3 +45,19 @@ export const CallAvatarAnimation = style({
|
|||
animation: `${wobble} 2000ms ease-in-out, ${glowPulse} 2000ms ease-out`,
|
||||
animationIterationCount: 'infinite',
|
||||
});
|
||||
|
||||
const flicker = keyframes({
|
||||
'0%, 90%, 100%': {
|
||||
opacity: 1,
|
||||
},
|
||||
'92%, 94%, 96%': {
|
||||
opacity: 0,
|
||||
},
|
||||
'93%, 95%, 97%': {
|
||||
opacity: 1,
|
||||
},
|
||||
});
|
||||
|
||||
export const FlickerText = style({
|
||||
animation: `${flicker} 2s infinite`,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue