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
43
44
45
46
47
48
49
50
51
52
use crate::;
/// Wait for some time and do nothing :|
/// Everyone needs some rest.
pub const
/// Execute Animations at once.
///```
/// parallel![
/// cw.add_lines()
/// .str(
/// r"
///fn fib(n: u32) -> u32 {
/// match n {
/// 0 => 0,
/// 1 => 1,
/// _ => fib(n - 1) + fib(n - 2),
/// }
///}
/// "
/// )
/// .over(5.s())
/// .style(CodeAnimationStyle::TypeWriterInstantResize),
/// typing.play(),
/// ],
///```
/// Allows you to do a sequence of animations inside of a parallel block
///```
///parallel![
/// sequence![
/// cw.close_button().scale().to(Vec2::ONE * 0.8).over(0.3.s()),
/// cw.close_button().scale().to(Vec2::ONE).over(0.3.s()),
/// ],
/// click.play(),
///],
///```