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
53
54
55
56
57
58
59
60
61
62
63
64
65
use crate::ext::*;

// https://tailwindcss.com/docs/transition-property
constant!(transition none);
constant!(transition all);
constant!(transition);
constant!(transition colors);
constant!(transition opacity);
constant!(transition shadow);
constant!(transition transform);

any!(transition);

// https://tailwindcss.com/docs/transition-duration
constant!(duration 0);
constant!(duration 75);
constant!(duration 100);
constant!(duration 150);
constant!(duration 200);
constant!(duration 300);
constant!(duration 500);
constant!(duration 700);
constant!(duration 1000);

any!(duration);

// https://tailwindcss.com/docs/transition-timing-function
constant!(ease linear);
constant!(ease in);
constant!(ease out);
constant!(ease in out);

any!(ease);

// https://tailwindcss.com/docs/transition-delay
constant!(delay 0);
constant!(delay 75);
constant!(delay 100);
constant!(delay 150);
constant!(delay 200);
constant!(delay 300);
constant!(delay 500);
constant!(delay 700);
constant!(delay 1000);

any!(delay);

// https://tailwindcss.com/docs/animation
constant!(animate none);
constant!(animate spin);
constant!(animate ping);
constant!(animate pulse);
constant!(animate bounce);

/// motion-safe:
pub fn motion_safe(v: &str) -> String {
    "motion-safe:".to_owned() + v
}

/// motion-reduce:
pub fn motion_reduce(v: &str) -> String {
    "motion-reduce:".to_owned() + v
}

any!(animate);