You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
457 B

1 year ago
/* eslint-disable */
function animate(options) {
var result = [];
if (options.duration) {
result.push('transition-duration: ' + options.duration + 's');
result.push(
options.direction === 'Y'
? ';transform: translate3d( 0,' + -100 * options.currentIndex + '%, 0)'
: ';transform: translate3d( ' + -100 * options.currentIndex + '%,0, 0)',
);
}
return result.join(';');
}
module.exports = {
animate: animate,
};