dioxus-type-animation 0.1.0

A Dioxus typewriter animation component inspired by react-type-animation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Repeat behavior for an animation sequence.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Repeat {
    /// Play the sequence once plus `count` repeats.
    Count(usize),
    /// Loop forever.
    Infinite,
}

impl Default for Repeat {
    fn default() -> Self {
        Self::Count(0)
    }
}