Center

code-show ▾

Overview

vue-concise-slider 实现的基础例子

  1. By configuring options
options: {
  itemAnimation: true,
  centeredSlides: true,
  loopedSlides: 2,
  slidesToScroll: 1
}
  1. Set css
.slider-item {
  transform:scale(0.8);
  transition-timing-function: ease;
  transition-duration: 300ms;
}
.slider-item.slider-active {
  transform:scale(1.0);
  z-index: 999;
}
.slider-item.slider-active-copy {
  transform:scale(1.0);
  z-index: 999;
}