transitionEnd.js 335 B

12345678910111213141516
  1. import transitionEmit from './transitionEmit.js';
  2. export default function transitionEnd(runCallbacks = true, direction) {
  3. const swiper = this;
  4. const {
  5. params
  6. } = swiper;
  7. swiper.animating = false;
  8. if (params.cssMode) return;
  9. swiper.setTransition(0);
  10. transitionEmit({
  11. swiper,
  12. runCallbacks,
  13. direction,
  14. step: 'End'
  15. });
  16. }