tfrere HF Staff Cursor commited on
Commit
86cf11d
·
1 Parent(s): 971176f

feat: staggered reading-order entrance for the title page

Browse files
Files changed (1) hide show
  1. index.html +24 -7
index.html CHANGED
@@ -620,8 +620,17 @@
620
  transition: opacity 0.35s ease, background 0.4s ease;
621
  }
622
  #welcome.closing { opacity: 0; pointer-events: none; }
 
 
 
 
 
623
  @keyframes row-in {
624
- from { transform: translateY(8px); opacity: 0; }
 
 
 
 
625
  to { transform: none; opacity: 1; }
626
  }
627
  #welcome .wstep {
@@ -630,13 +639,21 @@
630
  text-align: center;
631
  }
632
  #welcome .wstep[hidden] { display: none; }
633
- #welcome .wstep > * {
634
- animation: row-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
635
- }
636
- #welcome .wstep > :nth-child(2) { animation-delay: 0.06s; }
637
- #welcome .wstep > :nth-child(3) { animation-delay: 0.12s; }
 
 
 
 
 
 
 
638
  @media (prefers-reduced-motion: reduce) {
639
- #welcome .wstep > * { animation: none; }
 
640
  }
641
  #welcome .facts {
642
  display: flex;
 
620
  transition: opacity 0.35s ease, background 0.4s ease;
621
  }
622
  #welcome.closing { opacity: 0; pointer-events: none; }
623
+ /* Title-page entrance: every row fades up once, in reading order.
624
+ One soft ease, small travel, ~80 ms between rows - staged, not
625
+ showy. The brand alone adds a whisper of scale so the page opens
626
+ on it. Replays on every open (pause included): the modal is
627
+ display:none while hidden, so animations restart naturally. */
628
  @keyframes row-in {
629
+ from { transform: translateY(12px); opacity: 0; }
630
+ to { transform: none; opacity: 1; }
631
+ }
632
+ @keyframes brand-in {
633
+ from { transform: translateY(10px) scale(0.94); opacity: 0; }
634
  to { transform: none; opacity: 1; }
635
  }
636
  #welcome .wstep {
 
639
  text-align: center;
640
  }
641
  #welcome .wstep[hidden] { display: none; }
642
+ #welcome .wstep > *,
643
+ #welcome .foot {
644
+ animation: row-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
645
+ }
646
+ #welcome .wstep > :nth-child(1) { animation-name: brand-in; }
647
+ #welcome .wstep > :nth-child(2) { animation-delay: 0.08s; }
648
+ #welcome .wstep > :nth-child(3) { animation-delay: 0.16s; }
649
+ #welcome .wstep > :nth-child(4) { animation-delay: 0.24s; }
650
+ #welcome .wstep > :nth-child(5) { animation-delay: 0.32s; }
651
+ #welcome .wstep > :nth-child(n+6) { animation-delay: 0.4s; }
652
+ #welcome .wstep > .orbit-hint { animation-delay: 0.48s; }
653
+ #welcome .foot { animation-delay: 0.56s; }
654
  @media (prefers-reduced-motion: reduce) {
655
+ #welcome .wstep > *,
656
+ #welcome .foot { animation: none; }
657
  }
658
  #welcome .facts {
659
  display: flex;