maycur-business
Version:
maycur business react components of web
20 lines (18 loc) • 452 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = triggerReflow;
/**
* Triggers a document repaint or reflow for CSS transition
* @param {Element} tooltip
* @param {Element} circle
*/
function triggerReflow(tooltip, circle) {
// Safari needs the specific 'transform' property to be accessed
if (circle) {
window.getComputedStyle(circle);
} else {
window.getComputedStyle(tooltip);
}
}