transitionStart.js 346 B

12345678910111213141516171819
  1. import transitionEmit from './transitionEmit.js';
  2. export default function transitionStart(runCallbacks = true, direction) {
  3. const swiper = this;
  4. const {
  5. params
  6. } = swiper;
  7. if (params.cssMode) return;
  8. if (params.autoHeight) {
  9. swiper.updateAutoHeight();
  10. }
  11. transitionEmit({
  12. swiper,
  13. runCallbacks,
  14. direction,
  15. step: 'Start'
  16. });
  17. }