Skip to content

feat(reader): add fade page transition for DIVINA - #1354

Merged
everpcpc merged 1 commit into
mainfrom
feat/reader-fade-transition
Nov 28, 2026
Merged

everpcpc merged 1 commit into
mainfrom
feat/reader-fade-transition

Conversation

@everpcpc

Copy link
Copy Markdown
Member

What

Adds Fade (reader.page_transition.fade) as a page transition option for the DIVINA reader on iOS, macOS, and tvOS, alongside Scroll, Cover, and Page Curl.

  • Reuses the existing three-slot NativeCoverPageView deck via usesFadeTransition instead of introducing a separate engine.
  • Tap, key, and remote turns cross-dissolve by lifting the already-composited target slot above the opaque current page and animating its opacity from 0 to 1.
  • Interactive pans drive the target page's opacity directly from drag distance (full fade at half the viewport extent), keeping the existing commit/cancel thresholds and boundary haptics.
  • Turns that have already reached their target opacity complete immediately without running a no-op 0.3s animation, and every slot resets to full opacity on commit, cancel, or viewport change.
  • Panel Mode continues to pin Cover; EPUB and PDF settings are unchanged.
  • Updates the repo-conventions skill with the shared Cover/Fade deck invariants and adds translations for all 10 supported languages.

Why

A crossfade option gives readers a gentler, non-sliding page turn while inheriting the cover deck's preloading, dual-page, split-wide-page, zoom, and seamless cross-book behavior without duplicating a paging subsystem.

Validation

  • make format
  • make build (iOS, macOS, and tvOS all build successfully)
  • make localize and ./misc/translate.py list (No missing translations found.)
  • Manual verification on iPhone 18 Pro simulator (iOS 27.0) with a CBZ series:
    • Selected Fade from the in-reader Reader Settings sheet and confirmed localized labels.
    • Verified forward/backward tap turns, swipe turns, and short-drag cancellation.
    • Verified turning onto the end page, seamless forward/backward cross-book turns, and portrait/landscape rotation recovery.

Add a Fade option to DIVINA's Page Transition Style on iOS, macOS, and tvOS.

Fade reuses the existing three-slot cover deck: the preloaded target page
lifts above the opaque current page and cross-dissolves in for tap turns
and interactive drags, completing immediately when a drag has already
reached full opacity. Panel Mode continues to pin Cover, and EPUB/PDF
settings are unchanged.
@everpcpc
everpcpc merged commit f7d09d7 into main Nov 28, 2026
3 checks passed
@everpcpc
everpcpc deleted the feat/reader-fade-transition branch November 28, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant