Jm/intorg 729 hero network animated2 Fixes INTORG-729 #304
Jm/intorg 729 hero network animated2 Fixes INTORG-729 #304JonathanMatthey wants to merge 43 commits into
Conversation
…tion-nav2 # Conflicts: # src/components/layout/FoundationFooter.astro # src/components/shared/Button.astro # src/components/shared/Icon.astro # src/components/shared/LinkButton.astro # src/components/shared/buttonVariants.ts # src/config/foundation-navigation.es.json # src/config/foundation-navigation.json # src/data/ui.ts # src/layouts/FoundationPageLayout.astro # src/types/navigation.ts
Co-authored-by: Cursor <cursoragent@cursor.com>
✅ Deploy Preview for interledger-org-v5 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
# Conflicts: # src/components/pages/HomePage.astro
| transform-origin: 50% 52%; /* registration mark in the SVG (960/1920, 1648/3186) */ | ||
| will-change: transform; | ||
| animation: network-rotate linear both; | ||
| animation-timeline: --network-track; |
There was a problem hiding this comment.
is this tested on Firefox as well? from what I can see the property is not supported in firefox so we should confirm the fallback https://caniuse.com/?search=animation-timeline
| slot="media" | ||
| class="mx-auto flex w-full items-center overflow-hidden rounded-3xl bg-black tablet:w-[80%] desktop:mx-0 desktop:w-full" | ||
| > | ||
| <VideoEmbed |
There was a problem hiding this comment.
the section is being repeated twice I think
| alt="" | ||
| width="1920" | ||
| height="3186" | ||
| loading="lazy" |
There was a problem hiding this comment.
This decoration sits immediately after the hero, so on most viewports it's near-fold. Lazy-loading + scroll-driven animation can mean the animation runs against an undecoded image on first scroll. For a 5–6 KB SVG, just drop loading="lazy" (or use eager).
| opacity: 1; | ||
| } | ||
| to { | ||
| width: 1500vmax; |
There was a problem hiding this comment.
4vw → 1500vmax is layout-bound and wasteful.
Width animations trigger layout each frame. Combined with will-change: width (which only hints layers for transforms it doesn't help width), this is the most expensive way to do a growing disc. Use transform: scale() from a fixed seed size with will-change: transform and you get the same visual on the compositor.
# Conflicts: # src/components/pages/HomePage.astro
Summary
FoundationNavMenu,FoundationNavActions)FoundationLogoto use separate.svgfiles via?rawimports instead of inline base64 constantsAnimatedNetworkcomponent to homepage (CSS-only, no JS, reduced-motion safe)Related Issue
Fixes INTORG-729
Checks
pnpm run formatpnpm run lintPR Checklist
feat: ...,fix: ...)