12 lines
314 B
JavaScript
12 lines
314 B
JavaScript
class Keyframe {
|
|
constructor(name, style) {
|
|
this._keyframe = true;
|
|
this.name = name;
|
|
this.style = style;
|
|
}
|
|
getName() {
|
|
let hashId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
return hashId ? `${hashId}-${this.name}` : this.name;
|
|
}
|
|
}
|
|
export default Keyframe; |