mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-13 19:20:04 +00:00
4787bed380
* 💄 style: Update onboarding * style: update * 💄 style: Update i18n * fix: test
33 lines
637 B
TypeScript
33 lines
637 B
TypeScript
import { createStaticStyles, keyframes } from 'antd-style';
|
|
|
|
const greetingTextEnter = keyframes`
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
`;
|
|
|
|
const completionSlideUp = keyframes`
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(24px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
`;
|
|
|
|
export const staticStyle = createStaticStyles(({ css, cssVar }) => ({
|
|
completionEnter: css`
|
|
animation: ${completionSlideUp} 0.5s ease-out both;
|
|
`,
|
|
greetingTextAnimated: css`
|
|
animation: ${greetingTextEnter} 400ms ease-out 500ms both;
|
|
`,
|
|
}));
|