jquery-ui_ui_effects_effect-highlight.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // node_modules/jquery-ui/ui/effects/effect-highlight.js
  2. (function(factory) {
  3. "use strict";
  4. if (typeof define === "function" && define.amd) {
  5. define([
  6. "jquery",
  7. "../version",
  8. "../effect"
  9. ], factory);
  10. } else {
  11. factory(jQuery);
  12. }
  13. })(function($) {
  14. "use strict";
  15. return $.effects.define("highlight", "show", function(options, done) {
  16. var element = $(this), animation = {
  17. backgroundColor: element.css("backgroundColor")
  18. };
  19. if (options.mode === "hide") {
  20. animation.opacity = 0;
  21. }
  22. $.effects.saveStyle(element);
  23. element.css({
  24. backgroundImage: "none",
  25. backgroundColor: options.color || "#ffff99"
  26. }).animate(animation, {
  27. queue: false,
  28. duration: options.duration,
  29. easing: options.easing,
  30. complete: done
  31. });
  32. });
  33. });
  34. /*! Bundled license information:
  35. jquery-ui/ui/effects/effect-highlight.js:
  36. (*!
  37. * jQuery UI Effects Highlight 1.14.1
  38. * https://jqueryui.com
  39. *
  40. * Copyright OpenJS Foundation and other contributors
  41. * Released under the MIT license.
  42. * https://jquery.org/license
  43. *)
  44. */
  45. //# sourceMappingURL=jquery-ui_ui_effects_effect-highlight.js.map