Skip to content

Commit 7510cdd

Browse files
committed
docs: refine homepage hero animation
1 parent 423b89b commit 7510cdd

3 files changed

Lines changed: 184 additions & 32 deletions

File tree

changelogs/unreleased.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Unreleased
22

3-
- Enhanced the documentation home hero illustration with stronger SVG data-flow motion, staggered status pulses, and reduced-motion support.
3+
- Enhanced the documentation home hero illustration with CSS-driven SVG line flow, moving data packets, staggered node pulses, subtle scene breathing, and reduced-motion-safe visible cues.

docs/public/hero-mark.svg

Lines changed: 165 additions & 31 deletions
Loading

website/styles/home.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,18 @@ body:not(.notTopArrived) .rp-nav.rp-nav {
309309
max-width: 540px;
310310
border-radius: 0;
311311
filter: var(--msq-hero-mark-shadow);
312+
transform-origin: center;
313+
animation: msq-hero-scene-breathe 7.2s ease-in-out infinite;
314+
}
315+
316+
@keyframes msq-hero-scene-breathe {
317+
0%,
318+
100% {
319+
transform: translate3d(0, 0, 0) scale(1);
320+
}
321+
50% {
322+
transform: translate3d(0, -8px, 0) scale(1.01);
323+
}
312324
}
313325

314326
.rp-home-feature.rp-home-feature {
@@ -594,3 +606,9 @@ html[lang="zh"] .msq-footer--zh {
594606
grid-template-columns: 1fr;
595607
}
596608
}
609+
610+
@media (prefers-reduced-motion: reduce) {
611+
.rp-home-hero .rp-home-hero__image-img {
612+
animation: none;
613+
}
614+
}

0 commit comments

Comments
 (0)