QuizMatch.prototype = {
start: function() {
const $this = this
+ let posInit = 0
$(document).on("click", ".move-slide", function () {
let move = $(this).attr("aria-keyshortcuts")
type: 'bullets',
},
})
- swiperBottom.on('slideChange', function () {
+ swiperBottom.on('sliderMove', function (swiper,ev) {
+ const direction = swiper.swipeDirection
+ let currentSlide = $(swiper.slides[swiper.activeIndex])
+ console.log(currentSlide)
+
+ console.log(swiper,ev)
//$this.applyRotationToSiblings()
});
},
height: 158px
+radius(16px)
padding: 15px
- &.swiper-slide-active
+ transition: transform .3s
+ &-active
background-color: $neutral-color
border: 2px solid $texts-color
+ &-prev
+ transform: rotate(-5deg)
+ &-next
+ transform: rotate(5deg)
+ &-prev,
+ &-next
+ +opacity(.24,background-color,$neutral-color)
+
+ &:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next)
+ +opacity(.24,background-color,$neutral-color)
+
+
.swiper-pagination-top
text-align: center
.swiper-pagination-bullet
width: 4px
height: 4px
+ opacity: 1
+opacity(.16,background-color,$texts-color)
.swiper-pagination-bullet-active
background-color: $texts-color