MCPcopy Create free account
hub / github.com/Fiddle-Digital/string-scroll / callbackGl

Method callbackGl

src/Animations/StringAnimation.ts:121–132  ·  view source on GitHub ↗
(es: any)

Source from the content-addressed store, hash-verified

119 })
120 }
121 let callbackGl = (es: any) => {
122 es.forEach((e: any) => {
123 if (e.isIntersecting) {
124 let id = attr(e.target, `data-string-id`, `${this._key}-${this.id}`)
125 this.objectsMap.set(id, stringObject)
126 } else {
127 let id = attr(e.target, `data-string-id`, `${this._key}-${this.id}`)
128 this.objectsMap.delete(id)
129 }
130 this.objectsArray = Array.from(this.objectsMap).map(([name, value]) => (value))
131 })
132 }
133 let optionsProgress = {
134 root: null,
135 rootMargin: `${stringObject.oBottom * 1 + 10 }px 0px ${stringObject.oTop * 1 + 10}px 0px`,

Callers

nothing calls this directly

Calls 1

attrFunction · 0.90

Tested by

no test coverage detected