/*!
* jQuery UI Effects Bounce 1.14.2
* 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 );
} );
} );
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| accordion.js | 2026-08-20 11:46 | 15.48 KB | 76129f60960:kunden | -xw-x----- | |
| accordion.min.js | 2026-08-20 11:46 | 8.54 KB | 76129f60960:kunden | -xw-x----- | |
| autocomplete.js | 2026-08-20 11:46 | 15.8 KB | 76129f60960:kunden | -xw-x----- | |
| autocomplete.min.js | 2026-08-20 11:46 | 8.08 KB | 76129f60960:kunden | -xw-x----- | |
| button.js | 2026-08-20 11:46 | 11.4 KB | 76129f60960:kunden | -xw-x----- | |
| button.min.js | 2026-08-20 11:46 | 6.01 KB | 76129f60960:kunden | -xw-x----- | |
| checkboxradio.js | 2026-08-20 11:46 | 7.42 KB | 76129f60960:kunden | -xw-x----- | |
| checkboxradio.min.js | 2026-08-20 11:46 | 4.25 KB | 76129f60960:kunden | -xw-x----- | |
| controlgroup.js | 2026-08-20 11:46 | 8.42 KB | 76129f60960:kunden | -xw-x----- | |
| controlgroup.min.js | 2026-08-20 11:46 | 4.3 KB | 76129f60960:kunden | -xw-x----- | |
| core.js | 2026-08-20 11:46 | 45.26 KB | 76129f60960:kunden | -xw-x----- | |
| core.min.js | 2026-08-20 11:46 | 18.24 KB | 76129f60960:kunden | -xw-x----- | |
| datepicker.js | 2026-08-20 11:46 | 80.36 KB | 76129f60960:kunden | -xw-x----- | |
| datepicker.min.js | 2026-08-20 11:46 | 35.88 KB | 76129f60960:kunden | -xw-x----- | |
| dialog.js | 2026-08-20 11:46 | 22.79 KB | 76129f60960:kunden | -xw-x----- | |
| dialog.min.js | 2026-08-20 11:46 | 12.89 KB | 76129f60960:kunden | -xw-x----- | |
| draggable.js | 2026-08-20 11:46 | 34.66 KB | 76129f60960:kunden | -xw-x----- | |
| draggable.min.js | 2026-08-20 11:46 | 17.94 KB | 76129f60960:kunden | -xw-x----- | |
| droppable.js | 2026-08-20 11:46 | 12.6 KB | 76129f60960:kunden | -xw-x----- | |
| droppable.min.js | 2026-08-20 11:46 | 6.51 KB | 76129f60960:kunden | -xw-x----- | |
| effect-blind.js | 2026-08-20 11:46 | 1.61 KB | 76129f60960:kunden | -xw-x----- | |
| effect-blind.min.js | 2026-08-20 11:46 | 880 B | 76129f60960:kunden | -xw-x----- | |
| effect-bounce.js | 2026-08-20 11:46 | 2.6 KB | 76129f60960:kunden | -xw-x----- | |
| effect-bounce.min.js | 2026-08-20 11:46 | 991 B | 76129f60960:kunden | -xw-x----- | |
| effect-clip.js | 2026-08-20 11:46 | 1.54 KB | 76129f60960:kunden | -xw-x----- | |
| effect-clip.min.js | 2026-08-20 11:46 | 796 B | 76129f60960:kunden | -xw-x----- | |
| effect-drop.js | 2026-08-20 11:46 | 1.56 KB | 76129f60960:kunden | -xw-x----- | |
| effect-drop.min.js | 2026-08-20 11:46 | 753 B | 76129f60960:kunden | -xw-x----- | |
| effect-explode.js | 2026-08-20 11:46 | 2.8 KB | 76129f60960:kunden | -xw-x----- | |
| effect-explode.min.js | 2026-08-20 11:46 | 1.1 KB | 76129f60960:kunden | -xw-x----- | |
| effect-fade.js | 2026-08-20 11:46 | 968 B | 76129f60960:kunden | -xw-x----- | |
| effect-fade.min.js | 2026-08-20 11:46 | 525 B | 76129f60960:kunden | -xw-x----- | |
| effect-fold.js | 2026-08-20 11:46 | 2.13 KB | 76129f60960:kunden | -xw-x----- | |
| effect-fold.min.js | 2026-08-20 11:46 | 1020 B | 76129f60960:kunden | -xw-x----- | |
| effect-highlight.js | 2026-08-20 11:46 | 1.21 KB | 76129f60960:kunden | -xw-x----- | |
| effect-highlight.min.js | 2026-08-20 11:46 | 648 B | 76129f60960:kunden | -xw-x----- | |
| effect-puff.js | 2026-08-20 11:46 | 995 B | 76129f60960:kunden | -xw-x----- | |
| effect-puff.min.js | 2026-08-20 11:46 | 510 B | 76129f60960:kunden | -xw-x----- | |
| effect-pulsate.js | 2026-08-20 11:46 | 1.53 KB | 76129f60960:kunden | -xw-x----- | |
| effect-pulsate.min.js | 2026-08-20 11:46 | 688 B | 76129f60960:kunden | -xw-x----- | |
| effect-scale.js | 2026-08-20 11:46 | 1.34 KB | 76129f60960:kunden | -xw-x----- | |
| effect-scale.min.js | 2026-08-20 11:46 | 723 B | 76129f60960:kunden | -xw-x----- | |
| effect-shake.js | 2026-08-20 11:46 | 1.84 KB | 76129f60960:kunden | -xw-x----- | |
| effect-shake.min.js | 2026-08-20 11:46 | 846 B | 76129f60960:kunden | -xw-x----- | |
| effect-size.js | 2026-08-20 11:46 | 5.29 KB | 76129f60960:kunden | -xw-x----- | |
| effect-size.min.js | 2026-08-20 11:46 | 2.43 KB | 76129f60960:kunden | -xw-x----- | |
| effect-slide.js | 2026-08-20 11:46 | 1.92 KB | 76129f60960:kunden | -xw-x----- | |
| effect-slide.min.js | 2026-08-20 11:46 | 917 B | 76129f60960:kunden | -xw-x----- | |
| effect-transfer.js | 2026-08-20 11:46 | 887 B | 76129f60960:kunden | -xw-x----- | |
| effect-transfer.min.js | 2026-08-20 11:46 | 442 B | 76129f60960:kunden | -xw-x----- | |
| effect.js | 2026-08-20 11:46 | 23.5 KB | 76129f60960:kunden | -xw-x----- | |
| effect.min.js | 2026-08-20 11:46 | 9.86 KB | 76129f60960:kunden | -xw-x----- | |
| menu.js | 2026-08-20 11:46 | 18.46 KB | 76129f60960:kunden | -xw-x----- | |
| menu.min.js | 2026-08-20 11:46 | 9.92 KB | 76129f60960:kunden | -xw-x----- | |
| mouse.js | 2026-08-20 11:46 | 5.49 KB | 76129f60960:kunden | -xw-x----- | |
| mouse.min.js | 2026-08-20 11:46 | 3.22 KB | 76129f60960:kunden | -xw-x----- | |
| progressbar.js | 2026-08-20 11:46 | 4.08 KB | 76129f60960:kunden | -xw-x----- | |
| progressbar.min.js | 2026-08-20 11:46 | 2.5 KB | 76129f60960:kunden | -xw-x----- | |
| resizable.js | 2026-08-20 11:46 | 31.31 KB | 76129f60960:kunden | -xw-x----- | |
| resizable.min.js | 2026-08-20 11:46 | 18.99 KB | 76129f60960:kunden | -xw-x----- | |
| selectable.js | 2026-08-20 11:46 | 7.94 KB | 76129f60960:kunden | -xw-x----- | |
| selectable.min.js | 2026-08-20 11:46 | 4.4 KB | 76129f60960:kunden | -xw-x----- | |
| selectmenu.js | 2026-08-20 11:46 | 15.25 KB | 76129f60960:kunden | -xw-x----- | |
| selectmenu.min.js | 2026-08-20 11:46 | 9.12 KB | 76129f60960:kunden | -xw-x----- | |
| slider.js | 2026-08-20 11:46 | 19.14 KB | 76129f60960:kunden | -xw-x----- | |
| slider.min.js | 2026-08-20 11:46 | 10.51 KB | 76129f60960:kunden | -xw-x----- | |
| sortable.js | 2026-08-20 11:46 | 46.26 KB | 76129f60960:kunden | -xw-x----- | |
| sortable.min.js | 2026-08-20 11:46 | 24.73 KB | 76129f60960:kunden | -xw-x----- | |
| spinner.js | 2026-08-20 11:46 | 14.03 KB | 76129f60960:kunden | -xw-x----- | |
| spinner.min.js | 2026-08-20 11:46 | 7.45 KB | 76129f60960:kunden | -xw-x----- | |
| tabs.js | 2026-08-20 11:46 | 22.95 KB | 76129f60960:kunden | -xw-x----- | |
| tabs.min.js | 2026-08-20 11:46 | 11.51 KB | 76129f60960:kunden | -xw-x----- | |
| tooltip.js | 2026-08-20 11:46 | 13.96 KB | 76129f60960:kunden | -xw-x----- | |
| tooltip.min.js | 2026-08-20 11:46 | 6.07 KB | 76129f60960:kunden | -xw-x----- | |