vendor: 934 bytes, lines 1-47
1/*! 2 * jQuery UI Effects Fade 1.12.1 3 * http://jqueryui.com 4 * 5 * Copyright jQuery Foundation and other contributors 6 * Released under the MIT license. 7 * http://jquery.org/license 8 */ 9 10//>>label: Fade Effect 11//>>group: Effects 12//>>description: Fades the element. 13//>>docs: http://api.jqueryui.com/fade-effect/ 14//>>demos: http://jqueryui.com/effect/ 15 16( function( factory ) { 17 if ( typeof define === "function" && define.amd ) { 18 19 // AMD. Register as an anonymous module. 20 define( [ 21 "jquery", 22 "../version", 23 "../effect" 24 ], factory ); 25 } else { 26 27 // Browser globals 28 factory( jQuery ); 29 } 30}( function( $ ) { 31 32return $.effects.define( "fade", "toggle", function( options, done ) { 33 var show = options.mode === "show"; 34 35 $( this ) 36 .css( "opacity", show ? 0 : 1 ) 37 .animate( { 38 opacity: show ? 1 : 0 39 }, { 40 queue: false, 41 duration: options.duration, 42 easing: options.easing, 43 complete: done 44 } ); 45} ); 46 47} ) );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.