JayChase / ngx-useful-swiper

Use iDangero.us' great slider, Swiper in Angular.
17 stars 9 forks source link

Coverflow effect not working #6

Open NishadAbdul opened 5 years ago

NishadAbdul commented 5 years ago

Hi, I have upgraded the angular2-useful-swiper to 8.1 version and now it seems like coverflow effect is not working. In last version, document says we should manually add swiper.js to index.html or angular.json.

Is that causing the issue? Below added my configuration:

public dialerConfig: SwiperOptions = {
    effect: 'coverflow',
    grabCursor: true,
    centeredSlides: true,
    initialSlide: 5
    slideToClickedSlide: true,
    simulateTouch: true,
    keyboard: true,
    preventClicks: false,
    hashNavigation: true,
    coverflowEffect: {
      rotate: 0,
      stretch: 0,
      depth: 100,
      modifier: 6,
      slideShadows: true
    },
    slidesPerView: 'auto'
  };

Also some events seems to be changed/updated. Earlier I was able to call the transitionStart, but now it seems to be changed. Any alternatives?

onTransitionStart: (swiper) => {
      this.pageChange(swiper.activeIndex);
    }

Thanks in advance

NishadAbdul commented 4 years ago

Any updates on this issue?