Public site: smoother scrolling
Scrolling the home page dropped frames on a desktop-sized window. Measured in Firefox and Chromium, the cost came from blocks fading in while scrolling and from the blurred (frosted) header and calendar cards, which are redrawn on every frame. - Header and upcoming-calendar cards: nearly solid background, no blur. - Fade-in animations are shorter (0.4s / 0.5s, a smaller slide). - They are off for people whose device asks for reduced motion, and on devices that can't keep up: very few cores / little memory straight away, otherwise when more than 1 in 10 of the first scrolled frames run late (scrollReveal.ts adds `plain-motion` to <html>, remembered for the visit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
This commit is contained in:
parent
2c0f54b1f7
commit
a6f9e6c6e3
7 changed files with 144 additions and 14 deletions
|
|
@ -71,7 +71,7 @@
|
|||
{:else}
|
||||
<div class="isolate grid gap-8 lg:grid-cols-2">
|
||||
{#each months as month}
|
||||
<div class="relative z-0 overflow-visible rounded-panel border border-sage/15 bg-white/80 p-3 shadow-sm sm:p-5 backdrop-blur hover:z-[9000] focus-within:z-[9000]">
|
||||
<div class="relative z-0 overflow-visible rounded-panel border border-sage/15 bg-white/90 p-3 shadow-sm sm:p-5 hover:z-[9000] focus-within:z-[9000]">
|
||||
<h3 class="font-display mb-5 text-center text-3xl text-charcoal">{month.label}</h3>
|
||||
<div class="mb-2 grid grid-cols-7 gap-1 text-center text-xs font-semibold uppercase tracking-wide text-charcoal/45">
|
||||
{#each weekdays as weekday}<div>{weekday}</div>{/each}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue