let move = $(this).attr("aria-keyshortcuts")
if(move === "ARROWLEFT") {
- swiperTop.slidePrev()
+ swiperBottom.slidePrev()
}else {
- swiperTop.slideNext()
+ swiperBottom.slideNext()
}
})
el: '.swiper-pagination-bottom',
type: 'bullets',
},
+ on: {
+ afterInit: function(swiper) {
+ //$this.setClass()
+ },
+ slideChange: function(swiper) {
+ console.log(swiper)
+ const slides = swiper.slides
+ let activeIndex = swiper.activeIndex
+ let nextAllArray = swiper.slides.slice(activeIndex)
+ let prevAllArray = swiper.slides.slice(0,activeIndex)
+
+ if(nextAllArray.length > 0) {
+ nextAllArray.forEach(function() {
+
+ })
+ }
+
+ /*$(".bottom-slider .swiper-slide").removeClass("prevSibling nextSibling")
+ if($(".swiper-slide-prev").length > 0) {
+ const firstPrev = $(".swiper-slide-prev")
+ firstPrev.prevAll().addClass("prevSibling")
+ }
+ if($(".swiper-slide-next").length > 0) {
+ const firstNext = $(".swiper-slide-next").next()
+ firstNext.nextAll().addClass("nextSibling")
+ }*/
+ }
+ }
})
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()
});
},
-
- applyRotationToSiblings: function() {
- let prevEls = $(".swiper-container.bottom-slider .swiper-slide.swiper-slide-active").prevAll();
- let rotate = 0;
- prevEls.each(function (){
- rotate -= 20
- $(this).css("transform","rotate("+rotate+"deg)")
- })
- }
}
export default QuizMatch;
@content
-@mixin breakpoint($breakpoint, $direction: min)
+//@mixin breakpoint($breakpoint, $direction: min)
$breakpoint-values: map-get($breakpoints, $breakpoint)
$breakpoint: map-get($breakpoint-values, $direction)
@media (#{$direction}-width: $breakpoint)
@mixin padding-container()
padding: 16px
- +breakpoint(md)
+ //+breakpoint(md)
padding: 24px
@mixin radius($size)