(this.handler = handler)}
config={{ duration: 20000 }}
from={{ value: 0 }}
to={{ value: 10 }}
// onFrame={this.onFrame}
onStop={this.onStop}
>
{props => {
const value = props.value.toFixed(2);
const hsl = `hsl(${value * 25 + 60}, 90%, 50%)`;
const x = 100 + 20 * value;
const y = 100 + 20 * Math.cos(value);
return (
<>
prop.value changed to: {value}
{value}
I'am a block.
{hsl}
{['reset', 'reverse', 'pause', 'resume', 'stop', 'end'].map(funcName => (
))}
>
);
}}
);
}
}
return