Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 919B

123456789101112131415161718192021222324252627282930313233
  1. let swiper265 = new Swiper(".left-265 .swiper", {
  2. centeredSlides:true,
  3. loop:true,
  4. autoplay:false,
  5. navigation:{
  6. prevEl:".left-265 .swiper-button-prev",
  7. nextEl:".left-265 .swiper-button-next"
  8. }
  9. });
  10. let swiper670 = new Swiper(".center-670 .swiper", {
  11. spaceBetween:0,
  12. centeredSlides:true,
  13. loop:true,
  14. autoplay:{
  15. delay:5000,
  16. disableOnInteraction:false,
  17. },
  18. pagination:{
  19. el:".center-670 .swiper-pagination",
  20. clickable:true,
  21. },
  22. });
  23. $('.engineer .tab-box .tab-item').click(function(){
  24. $('.engineer .tab-box .tab-item').removeClass('active');
  25. $(this).addClass('active');
  26. $('.engineer .giant').removeClass('active');
  27. $('.engineer .giant').eq($(this).index()).addClass('active');
  28. $('.engineer .tab-box i').css('left',$(this).index() * 108 + 7 + 'px');
  29. $('.engineer .list.row').removeClass('active');
  30. $('.engineer .list.row').eq($(this).index()).addClass('active');
  31. });