1234567891011121314151617181920 |
- /* 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,
- };
|