2 * jQuery UI Effects Highlight 1.11.2
5 * Copyright 2014 jQuery Foundation and other contributors
6 * Released under the MIT license.
7 * http://jquery.org/license
9 * http://api.jqueryui.com/highlight-effect/
11 (function( factory ) {
12 if ( typeof define === "function" && define.amd ) {
14 // AMD. Register as an anonymous module.
26 return $.effects.effect.highlight = function( o, done ) {
28 props = [ "backgroundImage", "backgroundColor", "opacity" ],
29 mode = $.effects.setMode( elem, o.mode || "show" ),
31 backgroundColor: elem.css( "backgroundColor" )
34 if (mode === "hide") {
35 animation.opacity = 0;
38 $.effects.save( elem, props );
43 backgroundImage: "none",
44 backgroundColor: o.color || "#ffff99"
46 .animate( animation, {
50 complete: function() {
51 if ( mode === "hide" ) {
54 $.effects.restore( elem, props );