riku
2026-01-22 f14ea940fb32105de8b592992e3f53c62f31d84d
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,
};