setTransition.js 252 B

123456789
  1. export default function setTransition(duration, byController) {
  2. const swiper = this;
  3. if (!swiper.$wrapperEl) return
  4. if (!swiper.params.cssMode) {
  5. swiper.$wrapperEl.transition(duration);
  6. }
  7. swiper.emit('setTransition', duration, byController);
  8. }