Services carousel script, stops after item is selected

khm's picture
khm
Fri, 02/12/2016 - 08:25
#1
Services carousel script, stops after item is selected

Hi

one think I'd like to get solved: When you click on an item in services and it opens, returning back to the carousel it has stopped moving. 

Where is the switch/function to allow to to roll continously or not stop?

The blog relate script seems to be different as the list continues to roll/slide continously. 

Thanks!

khoa's picture
khoa
Sat, 02/13/2016 - 10:42

Hello,

Open theme.js file(sites/all/themes/md_arista/js/front), replace old code:

$(".close-service").click(function(){
     var selector = $(this).attr('data-rel');
     $(selector).slideUp(800);
     $('html, body').delay(600).animate({ scrollTop: $("#services").offset().top}, 800);
});

by

$(".close-service").click(function(){
      var selector = $(this).attr('data-rel');
      $(selector).slideUp(800);
      $('html, body').delay(600).animate({ scrollTop: $("#services").offset().top}, 800);
      var owl = $("#service-slider").data('owlCarousel')
      owl.play();
});

Thanks!

khm's picture
khm
Wed, 02/17/2016 - 05:23

Hi

awesome! Thanks very much! 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.