mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
parent
bdf6660fcd
commit
3d6a460bd6
@ -95,7 +95,7 @@
|
|||||||
|
|
||||||
&--animated {
|
&--animated {
|
||||||
display: flex;
|
display: flex;
|
||||||
transition-property: transform;
|
transition-property: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,10 +68,14 @@ function trackStyle(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'transform: translate3d(' + -100 * data.currentIndex + '%, 0, 0)',
|
['left', -100 * data.currentIndex + '%'],
|
||||||
'-webkit-transition-duration: ' + data.duration + 's',
|
['-webkit-transition-duration', data.duration + 's'],
|
||||||
'transition-duration: ' + data.duration + 's',
|
['transition-duration: ', data.duration + 's'],
|
||||||
].join(';');
|
]
|
||||||
|
.map(function (item) {
|
||||||
|
return item.join(':');
|
||||||
|
})
|
||||||
|
.join(';');
|
||||||
}
|
}
|
||||||
|
|
||||||
function lineStyle(data) {
|
function lineStyle(data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user