Pause Oxygen Slider on Hover

If you need to pause the Oxygen Slider Element on hover, it is not there by default. Just use the below Javascript (jQuery) in a code-block on the and add the below code to JS section.

Note : Just comment the PHP/HTML content middle Line.

jQuery(document).ready(function($) {

	if($('html').attr('ng-app') == 'CTFrontendBuilder') return;

	var data = $('.oxygen-unslider-container').data('unslider');

	$('.oxygen-unslider-container').hover(
		function() {
			data.stop();
		},
		function() {
			data.start();
		}
	);
});

// newsletter

Three tested WordPress snippets a week

Blocks, security, performance, Tailwind, PHP and React. Copy, paste, ship. You’ll also get DPlugins product updates. No spam, and you can unsubscribe anytime.

// newsletter

Three tested WordPress snippets a week

Blocks, security, performance, Tailwind, PHP and React. Copy, paste, ship. You'll also get DPlugins product updates. No spam, and you can unsubscribe anytime.

Click to Copy