Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
| 3 <style> | 3 <style> |
| 4 .target { | 4 .target { |
| 5 display: inline-block; | 5 display: inline-block; |
| 6 font: 100px sans-serif; | 6 font: 100px sans-serif; |
| 7 } | 7 } |
| 8 .replica { | 8 .replica { |
| 9 color: green; | 9 color: green; |
| 10 margin-right: 30px; | 10 margin-right: 30px; |
| 11 } | 11 } |
| 12 </style> | 12 </style> |
| 13 <body> | 13 <body> |
| 14 <template id="target-template">TT</template> | 14 <template id="target-template">TT</template> |
|
dstockwell
2013/10/08 06:21:25
Is the effect actually visible? I thought flood-op
dstockwell
2013/10/08 07:23:43
What I mean is can you see the effects of the anim
| |
| 15 <script src="resources/interpolation-test.js"></script> | 15 <script src="resources/interpolation-test.js"></script> |
| 16 <script> | 16 <script> |
| 17 assertInterpolation({ | 17 assertInterpolation({ |
| 18 property: 'letter-spacing', | 18 property: 'flood-opacity', |
| 19 from: '-10px', | 19 from: '0.25', |
| 20 to: '10px' | 20 to: '0.75' |
| 21 }, [ | 21 }, [ |
| 22 {at: -0.3, is: '-16px'}, | 22 {at: -1, is: '0'}, |
| 23 {at: 0, is: '-10px'}, | 23 {at: -0.25, is: '0.125'}, |
| 24 {at: 0.3, is: '-4px'}, | 24 {at: 0, is: '0.25'}, |
| 25 {at: 0.6, is: '2px'}, | 25 {at: 0.25, is: '0.375'}, |
| 26 {at: 1, is: '10px'}, | 26 {at: 1, is: '0.75'}, |
| 27 {at: 1.5, is: '20px'}, | 27 {at: 1.25, is: '0.875'}, |
| 28 {at: 2, is: '1'}, | |
| 28 ]); | 29 ]); |
| 29 </script> | 30 </script> |
| 30 </body> | 31 </body> |
| OLD | NEW |