| 4 | import { StringAnimationData } from "./StringAnimationData"; |
| 5 | |
| 6 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected