<!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> |