MCPcopy Create free account
hub / github.com/NMWplays/Glowify / handler

Function handler

theme.js:6012–6018  ·  view source on GitHub ↗
(ev)

Source from the content-addressed store, hash-verified

6010 if (textWidth > containerWidth && containerWidth > 0) {
6011 const gap = 48;
6012 const clone = textEl.cloneNode(true);
6013 clone.removeAttribute("data-uri");
6014 clone.style.pointerEvents = "none";
6015 clone.style.marginLeft = gap + "px";
6016 inner.appendChild(clone);
6017 const scrollDist = textWidth + gap;
6018 const duration = Math.max(5e3, scrollDist / 20 * 1e3);
6019 wrap.classList.add("nsc-scrolling");
6020 const anim = inner.animate(
6021 [

Callers

nothing calls this directly

Calls 2

onCloseFunction · 0.85
readNumFunction · 0.85

Tested by

no test coverage detected