Autoplay for "employees" widget

Hello,

I would like to get the employee widget to autoplay the items (like the testimonials one does). Is that possible?

Would it also be possible to get the items to cycle on mouse hover rather than on click?

Thanks in advance for your help.

Hello there,

Thank you for asking.

> Auto play employee carousel

I’m afraid there is no an option to set it to auto play in the widget settings. But, I thought you still have a chance to achieve it by editing the theme’s main JS file.

Could you please try to do the following?

  1. Open js/main.js file. Then copy its whole content
  2. Then paste it to js/main.min.js’s content. So it will be more readable
  3. Find the following code block
var teamCarousel = function(){
	if ( $().owlCarousel ) {
		$(".panel-grid-cell .roll-team").owlCarousel({
			navigation : false,
			pagination: true,
			responsive: true,
			items: 3,
			itemsDesktopSmall: [1400,3],
			itemsTablet:[970,2],
			itemsTabletSmall: [600,1],
			itemsMobile: [360,1],
			touchDrag: true,
			mouseDrag: true,
			autoHeight: false,
			autoPlay: false,
		}); // end owlCarousel
	} // end if
};

Change the autoPlay option value to true

  1. Minify the code using this tool

As you were editing the core theme’s file, you should take it at your own risk. The modifications you have done will be overwritten once you are updating the theme in the future.

> Would it also be possible to get the items to cycle on mouse hover rather than on click?

My apologies, I can’t get it clearly. Is there any example of “to cycle” I can have a look? Please post its URL here.

Regards,
Kharis

That’s great, thanks for your reply.

As for my question about “cycling”; I have noticed that this can be achieved by dragging, as well as by clicking on the navigation circles at the bottom of the widget. So that’s also sorted.

Thanks again.