Skip to content

Instantly share code, notes, and snippets.

@PetraMotz
Last active August 4, 2021 11:31
Show Gist options
  • Save PetraMotz/d363eefd9c7249431c79b3f7ff9f44bc to your computer and use it in GitHub Desktop.
Save PetraMotz/d363eefd9c7249431c79b3f7ff9f44bc to your computer and use it in GitHub Desktop.
Typo3 Slider #slick #slider #load #t3
$('.livingSpaceFilter').click(function() {
if(!$(this).hasClass('active')){
$('.livingSpaceFilter').removeClass('active');
$(this).addClass('active');
var filter = $(this).text();
$('.livingSpaceMap').each(function(){
if($(this).attr('data-filter') == filter){
var slideno = $(this).data('slide');
$('.livingSpaceImageContainer').slick('slickGoTo', slideno);
}
})
}
});
Beispiele für Slick Slider
https://kenwheeler.github.io/slick/
Swiper Slider (auf der vorlage)
https://swiperjs.com/
.slick-slider-load { ---Wrapper
&:not(.slick-slider){
.slick-slider-load__item { ---einzelnes Slide
&:not(:first-child) {
display: none;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment