let main_binding = Binding.bind({
eventType: 'timing',
exitExpression: 't>800',
props: [{
element: main_image,
property: 'transform.rotateZ',
expression: 'easeOutQuint(t,45,0-45,800)'
复制代码 }, {
element: main_btn,
property: 'background-color', // 此属性无法执行动画且影响上方的 property: 'transform.rotateZ'属性动画出现鬼畜闪烁
expression: "evaluateColor('#607D8B','#ff0000',min(t,800)/800)"
}]
}, function(res) {
if (res.state === 'exit') {
Binding.unbind({
token: main_binding.token,
eventType: 'timing'
})
}
});
2 个回复
DCloud_UNI_Anne
在旧版是否正常?请提供录屏看下表现(上传附件)
DCloud_UNI_Anne
HBuilderX 3.6.1-alpha 已修复
布朗
HBuilderX 3.7.3中bindingx使用background-color无效
2023-02-26 19:25