Skip to content

Type Alias: FadeMode ​

ts
type FadeMode = "cross" | "in" | "out" | "through";

Controls how the source and destination snapshots fade against each other during a flight.

  • "cross" (default): source fades 1 -> 0 while destination fades 0 -> 1 linearly across the full duration.
  • "in": source stays opaque (1) while destination fades 0 -> 1 on top.
  • "out": destination stays opaque (1) underneath while source fades 1 -> 0.
  • "through": Material fade-through curve. Source fades out over the first 35% of progress, followed by a 5% gap, then destination fades in over the remaining 60%.

Released under the MIT License.