generator-nitro
Version:
Yeoman generator for the nitro frontend framework
23 lines (20 loc) • 576 B
text/typescript
import { Component, EventListener, GondelBaseComponent } from '@gondel/core';
enum States {
Prepare = 'state-a-gondel--prepare',
Motion = 'state-a-gondel--motion',
}
export class Gondel extends GondelBaseComponent {
private _handleMouseOver() {
this._ctx.classList.add(States.Prepare);
}
private _handleMouseOut() {
this._ctx.classList.remove(States.Prepare);
}
private _handleChange() {
this._ctx.classList.toggle(States.Motion);
}
}