aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-02 23:40:15 -0800
committerFuwn <[email protected]>2026-02-02 23:40:15 -0800
commit968247b6559192e0654e9c50be359a894d359dd4 (patch)
tree38ad0805443635abc273c16a9e22db8086eda464 /src
parentperf(images): Optimise cover images for LCP and CLS (diff)
downloaddue.moe-968247b6559192e0654e9c50be359a894d359dd4.tar.xz
due.moe-968247b6559192e0654e9c50be359a894d359dd4.zip
perf(LandingHero): Optimise for faster LCP
Diffstat (limited to 'src')
-rw-r--r--src/app.html4
-rw-r--r--src/lib/LandingHero.svelte6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/app.html b/src/app.html
index 7133b358..2942c457 100644
--- a/src/app.html
+++ b/src/app.html
@@ -9,9 +9,13 @@
<link rel="preconnect" href="https://s4.anilist.co" crossorigin />
<link rel="preconnect" href="https://cdn.due.moe" crossorigin />
<link rel="preconnect" href="https://analytics.fuwn.me" crossorigin />
+ <link rel="preconnect" href="https://proxy.due.moe" crossorigin />
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="dns-prefetch" href="https://s4.anilist.co" />
<link rel="dns-prefetch" href="https://cdn.due.moe" />
<link rel="dns-prefetch" href="https://i.imgur.com" />
+ <link rel="dns-prefetch" href="https://proxy.due.moe" />
+ <link rel="dns-prefetch" href="https://fonts.gstatic.com" />
<meta
name="description"
diff --git a/src/lib/LandingHero.svelte b/src/lib/LandingHero.svelte
index 38f18c68..29f9f556 100644
--- a/src/lib/LandingHero.svelte
+++ b/src/lib/LandingHero.svelte
@@ -58,17 +58,15 @@
text-align: center;
padding: 2rem;
position: relative;
- animation: heroFadeIn 0.6s ease forwards;
+ animation: heroSlideIn 0.6s ease forwards;
}
- @keyframes heroFadeIn {
+ @keyframes heroSlideIn {
from {
- opacity: 0;
transform: translateY(20px);
}
to {
- opacity: 1;
transform: translateY(0);
}
}