@bitworks/svelte-split-text-animation
Version:
Animation of text split into characters, words or lines. Using split-type and GSAP
11 lines (10 loc) • 375 B
JavaScript
export const wrapLine = (lines) => {
lines.forEach((line, index) => {
const origLine = line.innerHTML;
const wrappedLine = '<div class="lineInner" data-order="' + index + '">' + origLine + '</div>';
line.innerHTML = wrappedLine;
});
};
export const removeOverflow = (target) => {
target?.parentElement?.classList.add('overflowNormal');
};