@hyperframes/shader-transitions 0.6.28 → 0.6.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -23,7 +23,8 @@ interface GsapTimeline {
23
23
  }
24
24
  interface TransitionConfig {
25
25
  time: number;
26
- shader: ShaderName;
26
+ /** Omit to use a CSS crossfade instead of a WebGL shader. */
27
+ shader?: ShaderName;
27
28
  duration?: number;
28
29
  ease?: string;
29
30
  }
@@ -78,7 +79,15 @@ interface AccentColors {
78
79
 
79
80
  interface PageCompositeTransitionConfig {
80
81
  time: number;
81
- shader: ShaderName;
82
+ /**
83
+ * Shader id. Undefined entries are CSS crossfades — the page-side
84
+ * compositor skips them, and the GSAP timeline in `initEngineMode`
85
+ * schedules an actual opacity-crossfade tween for those entries so the
86
+ * single page screenshot contains a correct blended frame. The entry
87
+ * stays in the array to preserve `transitions[i]` ↔ `scenes[i]`/
88
+ * `scenes[i+1]` index alignment for the surrounding shader entries.
89
+ */
90
+ shader?: ShaderName;
82
91
  duration?: number;
83
92
  }
84
93
  interface PageCompositorInstallOptions {
package/dist/index.d.ts CHANGED
@@ -23,7 +23,8 @@ interface GsapTimeline {
23
23
  }
24
24
  interface TransitionConfig {
25
25
  time: number;
26
- shader: ShaderName;
26
+ /** Omit to use a CSS crossfade instead of a WebGL shader. */
27
+ shader?: ShaderName;
27
28
  duration?: number;
28
29
  ease?: string;
29
30
  }
@@ -78,7 +79,15 @@ interface AccentColors {
78
79
 
79
80
  interface PageCompositeTransitionConfig {
80
81
  time: number;
81
- shader: ShaderName;
82
+ /**
83
+ * Shader id. Undefined entries are CSS crossfades — the page-side
84
+ * compositor skips them, and the GSAP timeline in `initEngineMode`
85
+ * schedules an actual opacity-crossfade tween for those entries so the
86
+ * single page screenshot contains a correct blended frame. The entry
87
+ * stays in the array to preserve `transitions[i]` ↔ `scenes[i]`/
88
+ * `scenes[i+1]` index alignment for the surrounding shader entries.
89
+ */
90
+ shader?: ShaderName;
82
91
  duration?: number;
83
92
  }
84
93
  interface PageCompositorInstallOptions {