New Huajishe Check ChaoXing
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/* eslint-disable */
|
||||
|
||||
function animate(options) {
|
||||
var result = [];
|
||||
|
||||
if (options.duration) {
|
||||
result.push('transition-duration: ' + options.duration + 's');
|
||||
result.push('transform: translate3d( ' + -100 * options.currentIndex + '%,0, 0)');
|
||||
}
|
||||
|
||||
return result.join(';');
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
animate: animate,
|
||||
};
|
||||
Reference in New Issue
Block a user