W3cubDocs

/jQuery UI

jQuery.effects.saveStyle()

jQuery.effects.saveStyle( element )version added: 1.12

Description: Stores a copy of all inline styles applied to an element.

Stores a copy of the current inline styles applied to the element, which can be reapplied to the element later using jQuery.effects.restoreStyle(). This is useful when animating various styles and restoring the existing styles at the end.

When using jQuery.effects.define() to create an effect, if jQuery.effects.saveStyle() is used on the main element being animated, the styles will be restored automatically when the animation is complete.

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jqueryui.com/jQuery.effects.saveStyle