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
|
<!DOCTYPE html>
<body>
<style>
.target {
width: 100px;
height: 100px;
background-color: black;
display: inline-block;
}
</style>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'opacity',
from: '0',
to: '1'
}, [
{at: -0.3, is: '0'},
{at: 0, is: '0'},
{at: 0.3, is: '0.3'},
{at: 0.6, is: '0.6'},
{at: 1, is: '1'},
{at: 1.5, is: '1'}
]);
</script>
|