1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! `<Freeze>` component — pauses all children at a fixed frame.
//!
//! Equivalent to Remotion's `<Freeze>`.
//!
//! When rendered, provides a `TimelineContext` that is frozen at `frame`
//! regardless of the actual playback position.
//!
//! # Example
//! ```rust,ignore
//! use dioxuscut_core::Freeze;
//!
//! fn FrozenSection() -> Element {
//! rsx! {
//! // Always shows frame 10 — useful for poster frames
//! Freeze { frame: 10,
//! MyVideo {}
//! }
//! }
//! }
//! ```
use crateTimelineContext;
use *;
/// Props for `<Freeze>`.
/// Freezes all descendant components at the given `frame`.