1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| /* 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,
| };
|
|