mirror of
https://github.com/cinnyapp/cinny.git
synced 2026-11-29 21:32:56 -08:00
add flickering animation on splash screen initial text
This commit is contained in:
1 parent
f6cada048b
commit
e510ba619e
2 files changed
+18
-1
No files matched your search
@@ -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`,
|
||||
});
|
||||
Reference in new issue
Block a user