css:
.hotSingerwrap{
width:7.48rem;
height: 100%;
position: absolute;
top: 0;
left: 0;
transition-timing-function: cubic-bezier(0.1,0.57,0.1,1);
transition-duration: 0ms;
transform: translate(0px,0px);
}
js:
$("#hotSingerwrap").swipeLeft(function(){
var a = $(this).css("transform")
var b = a.split(",")[4];
if (b>-365) {
index--;
$(this).css("transform","matrix(1, 0, 0, 1, "+index*50+",0)");
}
})
在微信端特别卡顿,请问有什么解决办法没。求推荐做类似效果比较好用的插件
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
闭关修行中......