var/www/html/servotec-doerpen/wp-includes/js/jquery/ui | uid:33
effect-bounce.js [X]
/*!
 * jQuery UI Effects Bounce 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */

//>>label: Bounce Effect
//>>group: Effects
//>>description: Bounces an element horizontally or vertically n times.
//>>docs: https://api.jqueryui.com/bounce-effect/
//>>demos: https://jqueryui.com/effect/

( function( factory ) {
	"use strict";

	if ( typeof define === "function" && define.amd ) {

		// AMD. Register as an anonymous module.
		define( [
			"jquery",
			"../version",
			"../effect"
		], factory );
	} else {

		// Browser globals
		factory( jQuery );
	}
} )( function( $ ) {
"use strict";

return $.effects.define( "bounce", function( options, done ) {
	var upAnim, downAnim, refValue,
		element = $( this ),

		// Defaults:
		mode = options.mode,
		hide = mode === "hide",
		show = mode === "show",
		direction = options.direction || "up",
		distance = options.distance,
		times = options.times || 5,

		// Number of internal animations
		anims = times * 2 + ( show || hide ? 1 : 0 ),
		speed = options.duration / anims,
		easing = options.easing,

		// Utility:
		ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
		motion = ( direction === "up" || direction === "left" ),
		i = 0,

		queuelen = element.queue().length;

	$.effects.createPlaceholder( element );

	refValue = element.css( ref );

	// Default distance for the BIGGEST bounce is the outer Distance / 3
	if ( !distance ) {
		distance = element[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;
	}

	if ( show ) {
		downAnim = { opacity: 1 };
		downAnim[ ref ] = refValue;

		// If we are showing, force opacity 0 and set the initial position
		// then do the "first" animation
		element
			.css( "opacity", 0 )
			.css( ref, motion ? -distance * 2 : distance * 2 )
			.animate( downAnim, speed, easing );
	}

	// Start at the smallest distance if we are hiding
	if ( hide ) {
		distance = distance / Math.pow( 2, times - 1 );
	}

	downAnim = {};
	downAnim[ ref ] = refValue;

	// Bounces up/down/left/right then back to 0 -- times * 2 animations happen here
	for ( ; i < times; i++ ) {
		upAnim = {};
		upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;

		element
			.animate( upAnim, speed, easing )
			.animate( downAnim, speed, easing );

		distance = hide ? distance * 2 : distance / 2;
	}

	// Last Bounce when Hiding
	if ( hide ) {
		upAnim = { opacity: 0 };
		upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;

		element.animate( upAnim, speed, easing );
	}

	element.queue( done );

	$.effects.unshift( element, queuelen, anims + 1 );
} );

} );
accordion.js15.8KV E R D
accordion.min.js8.7KV E R D
autocomplete.js17.1KV E R D
button.js11.4KV E R D
button.min.js6KV E R D
checkboxradio.js7.4KV E R D
checkboxradio.min.js4.2KV E R D
controlgroup.js8.4KV E R D
controlgroup.min.js4.3KV E R D
core.js48.7KV E R D
datepicker.js80.6KV E R D
datepicker.min.js35.9KV E R D
dialog.js23.3KV E R D
dialog.min.js12.8KV E R D
draggable.js34.7KV E R D
draggable.min.js18KV E R D
droppable.js12.6KV E R D
effect-blind.js1.6KV E R D
effect-bounce.js2.6KV E R D
effect-clip.min.js796V E R D
effect-drop.js1.6KV E R D
effect-drop.min.js753V E R D
effect-explode.min.js1.1KV E R D
effect-fade.js968V E R D
effect-fade.min.js525V E R D
effect-fold.js2.1KV E R D
effect-fold.min.js1020V E R D
effect-highlight.js1.2KV E R D
effect-highlight.min.js648V E R D
effect-puff.js995V E R D
effect-puff.min.js510V E R D
effect-pulsate.min.js688V E R D
effect-scale.js1.3KV E R D
effect-scale.min.js723V E R D
effect-shake.js1.8KV E R D
effect-size.js5.3KV E R D
effect-size.min.js2.4KV E R D
effect-slide.js1.9KV E R D
effect-transfer.js888V E R D
effect-transfer.min.js442V E R D
effect.js24KV E R D
effect.min.js10.1KV E R D
menu.js18.5KV E R D
mouse.js6.1KV E R D
progressbar.js4.1KV E R D
progressbar.min.js2.5KV E R D
resizable.js29.8KV E R D
resizable.min.js18.4KV E R D
selectable.js7.9KV E R D
selectable.min.js4.4KV E R D
selectmenu.js16KV E R D
selectmenu.min.js9.3KV E R D
slider.js19.1KV E R D
slider.min.js10.5KV E R D
sortable.js46.5KV E R D
sortable.min.js24.9KV E R D
spinner.min.js7.5KV E R D
tabs.js23.1KV E R D
tabs.min.js11.7KV E R D
tooltip.js14.1KV E R D
tooltip.min.js6.1KV E R D