5 translate:
100px
200px
300px;
10 background-color: black;
14 background-color: green;
17 <template id=
"target-template">
19 <div class=
"target"></div>
22 <script src=
"resources/interpolation-test.js"></script>
25 property
: 'translate',
31 {at
: 0.25, is
: '12.5px'},
32 {at
: 0.75, is
: '17.5px'},
38 property
: 'translate',
42 {at
: -1, is
: '-20px'},
44 {at
: 0.25, is
: '5px'},
45 {at
: 0.75, is
: '15px'},
51 property
: 'translate',
55 {at
: -1, is
: '-300px'},
56 {at
: 0, is
: '-100px'},
57 {at
: 0.25, is
: '-50px'},
58 {at
: 0.75, is
: '50px'},
64 property
: 'translate',
68 {at
: -1, is
: '-300%'},
70 {at
: 0.25, is
: '-50%'},
71 {at
: 0.75, is
: '50%'},
77 property
: 'translate',
81 {at
: -1, is
: '-300px -150px'},
82 {at
: 0, is
: '-100px -50px'},
83 {at
: 0.25, is
: '-50px -25px'},
84 {at
: 0.75, is
: '50px 25px'},
85 {at
: 1, is
: '100px 50px'},
86 {at
: 2, is
: '300px 150px'},
90 property
: 'translate',
91 from: '-100px -50px 100px',
94 {at
: -1, is
: '-300px -150px 200px'},
95 {at
: 0, is
: '-100px -50px 100px'},
96 {at
: 0.25, is
: '-50px -25px 75px'},
97 {at
: 0.75, is
: '50px 25px 25px'},
98 {at
: 1, is
: '100px 50px 0px'},
99 {at
: 2, is
: '300px 150px -100px'},
102 assertInterpolation({
103 property
: 'translate',
105 to
: '-100px -50px 100px',
107 {at
: -1, is
: '100px 50px -100px'},
109 {at
: 0.25, is
: '-25px -12.5px 25px'},
110 {at
: 0.75, is
: '-75px -37.5px 75px'},
111 {at
: 1, is
: '-100px -50px 100px'},
112 {at
: 2, is
: '-200px -100px 200px'},
115 assertInterpolation({
116 property
: 'translate',
117 from: '-100px -50px 100px',
120 {at
: -1, is
: '-200px -100px 200px'},
121 {at
: 0, is
: '-100px -50px 100px'},
122 {at
: 0.25, is
: '-75px -37.5px 75px'},
123 {at
: 0.75, is
: '-25px -12.5px 25px'},
125 {at
: 2, is
: '100px 50px -100px'},
128 assertInterpolation({
129 property
: 'translate',
131 to
: '200px 100px 200px',
133 {at
: -1, is
: '0px 300px 400px'},
134 {at
: 0, is
: '100px 200px 300px'},
135 {at
: 0.25, is
: '125px 175px 275px'},
136 {at
: 0.75, is
: '175px 125px 225px'},
137 {at
: 1, is
: '200px 100px 200px'},
138 {at
: 2, is
: '300px 0px 100px'},
141 assertInterpolation({
142 property
: 'translate',
143 from: '200px 100px 200px',
146 {at
: -1, is
: '300px 0px 100px'},
147 {at
: 0, is
: '200px 100px 200px'},
148 {at
: 0.25, is
: '175px 125px 225px'},
149 {at
: 0.75, is
: '125px 175px 275px'},
150 {at
: 1, is
: '100px 200px 300px'},
151 {at
: 2, is
: '0px 300px 400px'},
154 assertInterpolation({
155 property
: 'translate',
157 to
: '200px 100px 200px',
159 {at
: -1, is
: '-200px -100px -200px'},
161 {at
: 0.25, is
: '50px 25px 50px'},
162 {at
: 0.75, is
: '150px 75px 150px'},
163 {at
: 1, is
: '200px 100px 200px'},
164 {at
: 2, is
: '400px 200px 400px'},
167 assertInterpolation({
168 property
: 'translate',
169 from: '200px 100px 200px',
172 {at
: -1, is
: '400px 200px 400px'},
173 {at
: 0, is
: '200px 100px 200px'},
174 {at
: 0.25, is
: '150px 75px 150px'},
175 {at
: 0.75, is
: '50px 25px 50px'},
177 {at
: 2, is
: '-200px -100px -200px'},
180 assertInterpolation({
181 property
: 'translate',
185 {at
: -1, is
: '-100px -200px -300px'},
187 {at
: 0.25, is
: '25px 50px 75px'},
188 {at
: 0.75, is
: '75px 150px 225px'},
189 {at
: 1, is
: '100px 200px 300px'},
190 {at
: 2, is
: '200px 400px 600px'},
193 assertInterpolation({
194 property
: 'translate',
198 {at
: -1, is
: '200px 400px 600px'},
199 {at
: 0, is
: '100px 200px 300px'},
200 {at
: 0.25, is
: '75px 150px 225px'},
201 {at
: 0.75, is
: '25px 50px 75px'},
203 {at
: 2, is
: '-100px -200px -300px'},