Skip to content

Commit 6b5dee1

Browse files
author
CodeJudge
committed
feat: 页面切换动画
1 parent 514f6e6 commit 6b5dee1

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

frontend/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function App() {
2626
return (
2727
<div className="min-h-screen bg-dark-950">
2828
<Navbar />
29-
<main className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
29+
<main className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 animate-fadeIn">
3030
<ErrorBoundary>
3131
<Suspense fallback={
3232
<div className="flex items-center justify-center min-h-[60vh]">

frontend/src/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,9 @@ pre, code {
8383
100% { transform: translateY(-200px) scale(0.3); opacity: 0; }
8484
}
8585
.animate-float-up { animation: float-up ease-out forwards; }
86+
87+
@keyframes fadeIn {
88+
0% { opacity: 0; transform: translateY(8px); }
89+
100% { opacity: 1; transform: translateY(0); }
90+
}
91+
.animate-fadeIn { animation: fadeIn 0.3s ease-out; }

0 commit comments

Comments
 (0)