在组件上赋值样式,'-webkit-mask-size': 100%
,这个样式会丢
<view :style="modelmaterial" class="model-material">
</view>
this.modelmaterial = {
transition: background 0.8s ease
,
'-webkit-mask': url(${this.templeteimage})
,
'-webkit-mask-repeat': no-repeat
,
'-webkit-mask-size': 100%
,
'-webkit-filter': hue-rotate(0deg)
,
backgroundImage: url(${this.fugaiimage})
,
backgroundPosition: center center
,
backgroundSize: 100 - this.percent1 + '%',
height: '1624rpx',
opacity: 1 - this.percent2 / 100,
width: 100%
,
'mix-blend-mode': 'overlay',
'filter': brightness(
+ (100 - this.percent) + %)
,
}
0 个回复