Files
rc-portfolio/src/app/home/home.component.ts

22 lines
588 B
TypeScript
Raw Normal View History

2025-02-24 18:10:29 -05:00
import { Component } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
2025-04-03 23:07:25 -04:00
import { slidInAnimations, wobbleAnimation } from '../animations/animations';
2025-02-24 18:10:29 -05:00
@Component({
standalone: true,
selector: 'app-home',
imports: [MatButtonModule, MatIconModule],
2025-02-24 18:10:29 -05:00
templateUrl: './home.component.html',
styleUrl: './home.component.scss',
2025-04-03 23:07:25 -04:00
animations: [slidInAnimations, wobbleAnimation],
2025-02-24 18:10:29 -05:00
})
2025-04-03 23:07:25 -04:00
export class HomeComponent {
isWobbling = true;
onwobbleDone() {
this.isWobbling = !this.isWobbling;
}
}