MCPcopy
hub / github.com/darkroomengineering/lenis / updateClassName

Method updateClassName

packages/core/src/lenis.ts:1169–1175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1167 }
1168
1169 private updateClassName() {
1170 this.cleanUpClassName()
1171
1172 this.className.split(' ').forEach((className) => {
1173 this.rootElement.classList.add(className)
1174 })
1175 }
1176
1177 private cleanUpClassName() {
1178 for (const className of Array.from(this.rootElement.classList)) {

Callers 4

constructorMethod · 0.95
isScrollingMethod · 0.95
isStoppedMethod · 0.95
isLockedMethod · 0.95

Calls 2

cleanUpClassNameMethod · 0.95
addMethod · 0.80

Tested by

no test coverage detected