50015002/**5003* wrap element5004*5005* @param {HTMLElement} el - current Element5006* @param {string | string[]} className - class of wrapped el5007*/5008function t_animationSBS__wrapEl(el, className) {5009if (!el) return false;5010var parent = el.parentNode;50115012var div = document.createElement('div');
const { width, height } = t_animationSBS__getSizeBasedOnDimensionMode(parent); if (typeof className === 'string') { div.classList.add(className); } else { className.forEach(function (name) { div.classList.add(name); }); } div.style.display = 'inherit'; div.style.width = width; div.style.height = height; div.appendChild(el); if (parent) { parent.appendChild(div); }}