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

Class StringShowAnimation

src/Animations/StringShowAnimation.ts:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { StringAnimationData } from "./StringAnimationData";
5
6export class StringShowAnimation extends StringAnimation{
7 constructor(){
8 super('data-string', '', '')
9 this.onEnter = (object: StringScrollObject) => {
10 object.el.classList.add("-inview")
11 }
12 this.onLeave = (object: StringScrollObject)=>{
13 if (attr(object.el, `data-string-repeat`) != null) {
14 object.el.classList.remove("-inview")
15 }
16 }
17 }
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected