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