📂 File Manager
📝 Edit File: effect-slide.js
/*! * jQuery UI Effects Slide 1.13.3 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. * https://jquery.org/license */ //>>label: Slide Effect //>>group: Effects //>>description: Slides an element in and out of the viewport. //>>docs: https://api.jqueryui.com/slide-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( "slide", "show", function( options, done ) { var startClip, startRef, element = $( this ), map = { up: [ "bottom", "top" ], down: [ "top", "bottom" ], left: [ "right", "left" ], right: [ "left", "right" ] }, mode = options.mode, direction = options.direction || "left", ref = ( direction === "up" || direction === "down" ) ? "top" : "left", positiveMotion = ( direction === "up" || direction === "left" ), distance = options.distance || element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ), animation = {}; $.effects.createPlaceholder( element ); startClip = element.cssClip(); startRef = element.position()[ ref ]; // Define hide animation animation[ ref ] = ( positiveMotion ? -1 : 1 ) * distance + startRef; animation.clip = element.cssClip(); animation.clip[ map[ direction ][ 1 ] ] = animation.clip[ map[ direction ][ 0 ] ]; // Reverse the animation if we're showing if ( mode === "show" ) { element.cssClip( animation.clip ); element.css( ref, animation[ ref ] ); animation.clip = startClip; animation[ ref ] = startRef; } // Actually animate element.animate( animation, { queue: false, duration: options.duration, easing: options.easing, complete: done } ); } ); } );
Cancel
Type
Item Name
Actions
📁
..
📄
accordion.js
✏️
📝
📄
accordion.min.js
✏️
📝
📄
autocomplete.js
✏️
📝
📄
autocomplete.min.js
✏️
📝
📄
button.js
✏️
📝
📄
button.min.js
✏️
📝
📄
checkboxradio.js
✏️
📝
📄
checkboxradio.min.js
✏️
📝
📄
controlgroup.js
✏️
📝
📄
controlgroup.min.js
✏️
📝
📄
core.js
✏️
📝
📄
core.min.js
✏️
📝
📄
datepicker.js
✏️
📝
📄
datepicker.min.js
✏️
📝
📄
dialog.js
✏️
📝
📄
dialog.min.js
✏️
📝
📄
draggable.js
✏️
📝
📄
draggable.min.js
✏️
📝
📄
droppable.js
✏️
📝
📄
droppable.min.js
✏️
📝
📄
effect-blind.js
✏️
📝
📄
effect-blind.min.js
✏️
📝
📄
effect-bounce.js
✏️
📝
📄
effect-bounce.min.js
✏️
📝
📄
effect-clip.js
✏️
📝
📄
effect-clip.min.js
✏️
📝
📄
effect-drop.js
✏️
📝
📄
effect-drop.min.js
✏️
📝
📄
effect-explode.js
✏️
📝
📄
effect-explode.min.js
✏️
📝
📄
effect-fade.js
✏️
📝
📄
effect-fade.min.js
✏️
📝
📄
effect-fold.js
✏️
📝
📄
effect-fold.min.js
✏️
📝
📄
effect-highlight.js
✏️
📝
📄
effect-highlight.min.js
✏️
📝
📄
effect-puff.js
✏️
📝
📄
effect-puff.min.js
✏️
📝
📄
effect-pulsate.js
✏️
📝
📄
effect-pulsate.min.js
✏️
📝
📄
effect-scale.js
✏️
📝
📄
effect-scale.min.js
✏️
📝
📄
effect-shake.js
✏️
📝
📄
effect-shake.min.js
✏️
📝
📄
effect-size.js
✏️
📝
📄
effect-size.min.js
✏️
📝
📄
effect-slide.js
✏️
📝
📄
effect-slide.min.js
✏️
📝
📄
effect-transfer.js
✏️
📝
📄
effect-transfer.min.js
✏️
📝
📄
effect.js
✏️
📝
📄
effect.min.js
✏️
📝
📄
menu.js
✏️
📝
📄
menu.min.js
✏️
📝
📄
mouse.js
✏️
📝
📄
mouse.min.js
✏️
📝
📄
progressbar.js
✏️
📝
📄
progressbar.min.js
✏️
📝
📄
resizable.js
✏️
📝
📄
resizable.min.js
✏️
📝
📄
selectable.js
✏️
📝
📄
selectable.min.js
✏️
📝
📄
selectmenu.js
✏️
📝
📄
selectmenu.min.js
✏️
📝
📄
slider.js
✏️
📝
📄
slider.min.js
✏️
📝
📄
sortable.js
✏️
📝
📄
sortable.min.js
✏️
📝
📄
spinner.js
✏️
📝
📄
spinner.min.js
✏️
📝
📄
tabs.js
✏️
📝
📄
tabs.min.js
✏️
📝
📄
tooltip.js
✏️
📝
📄
tooltip.min.js
✏️
📝