function speedChange() {
	if (typeof animation !== "undefined") {
		clearInterval(animation)
		var speed = $('#animation_speed').val();
		animation = setInterval(function() {
			var item = $('#animateModal .frames_section .animate_item.active_item');
			item.removeClass('active_item');

			if (item.next().length === 0) {
				nextItem = $('#animateModal .frames_section .animate_item').first();
			} else {
				nextItem = item.next();
			}
			nextItem.addClass('active_item');
		}, speed);
	}
}
/**
 * Changes the speed of the animation (i.e the delay between each frames)
 */
Changes the speed of the animation
Changes the speed of the animation
function speedChange() {
	if (typeof animation !== "undefined") {
		clearInterval(animation)
		var speed = $('#animation_speed').val();
		animation = setInterval(function() {
			var item = $('#animateModal .frames_section .animate_item.active_item');
			item.removeClass('active_item');
			if (item.next().length === 0) {
				nextItem = $('#animateModal .frames_section .animate_item').first();
			} else {
				nextItem = item.next();
			}
			nextItem.addClass('active_item');
		}, speed);
	}
}
function speedChange ( ) { if ( typeof animation !== "undefined" ) { clearInterval ( animation ) var speed = $ ( '#animation_speed' ) . val ( ) ; animation = setInterval ( function ( ) { var item = $ ( '#animateModal .frames_section .animate_item.active_item' ) ; item . removeClass ( 'active_item' ) ; if ( item . next ( ) . length === 0 ) { nextItem = $ ( '#animateModal .frames_section .animate_item' ) . first ( ) ; } else { nextItem = item . next ( ) ; } nextItem . addClass ( 'active_item' ) ; } , speed ) ; } }
Changes the speed of the animation (i.e the delay between each frames)
Changes the speed of the animation ( i . e the delay between each frames )