Allows you to pass in a function while temporarily disabling CSS transitions on an element. Helpful for setting styles or modifying an element's DOM structure without triggering unwanted transition instances.
xtag.skipTransition(ELEMENT, FUNCTION)
xtag.skipTransition(ELEMENT, FUNCTION)
Arguments | Type | Description |
---|---|---|
ELEMENT | DOM element reference | The element you would like CSS transitions disabled for while you execute your function. |
FUNCTION | Function | A function to execute while the element has its CSS transitions disabled. |
xtag.skipTransition(myElement, function(){
myElement.style.height = '50%';
});