- Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathcustom-property-animation-transform-function.html
57 lines (51 loc) · 1.71 KB
/
custom-property-animation-transform-function.html
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
<!DOCTYPE html>
<linkrel="help" href="https://drafts.css-houdini.org/css-properties-values-api-1">
<scriptsrc="/resources/testharness.js"></script>
<scriptsrc="/resources/testharnessreport.js"></script>
<scriptsrc="../resources/utils.js"></script>
<divid="target"></div>
<script>
animation_test({
syntax: "<transform-function>",
inherits: false,
initialValue: "translateX(0px)"
},{
keyframes: ["translateX(100px)","translateX(200px)"],
expected: "translateX(150px)"
},'Animating a custom property of type <transform-function>');
animation_test({
syntax: "<transform-function>",
inherits: false,
initialValue: "translateX(100px)"
},{
keyframes: "translateX(200px)",
expected: "translateX(150px)"
},'Animating a custom property of type <transform-function> with a single keyframe');
animation_test({
syntax: "<transform-function>",
inherits: false,
initialValue: "translateX(100px)"
},{
composite: "add",
keyframes: ["translateX(200px)","translateX(300px)"],
expected: "translateX(350px)"
},'Animating a custom property of type <transform-function> with additivity');
animation_test({
syntax: "<transform-function>",
inherits: false,
initialValue: "translateX(100px)"
},{
composite: "add",
keyframes: "translateX(300px)",
expected: "translateX(250px)"
},'Animating a custom property of type <transform-function> with a single keyframe and additivity');
animation_test({
syntax: "<transform-function>",
inherits: false,
initialValue: "translateX(100px)"
},{
iterationComposite: "accumulate",
keyframes: ["translateX(0px)","translateX(100px)"],
expected: "translateX(250px)"
},'Animating a custom property of type <transform-function> with iterationComposite');
</script>