From e6ea47d764e6499b8cb5cb53669a4d81a23b334d Mon Sep 17 00:00:00 2001 From: Raghu Date: Thu, 3 Apr 2025 23:07:25 -0400 Subject: [PATCH] import animations to home comp --- src/app/home/home.component.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index dc63ad4..0afdb14 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/material/icon'; +import { slidInAnimations, wobbleAnimation } from '../animations/animations'; @Component({ standalone: true, @@ -9,5 +10,12 @@ import { MatIconModule } from '@angular/material/icon'; imports: [MatButtonModule, MatIconModule], templateUrl: './home.component.html', styleUrl: './home.component.scss', + animations: [slidInAnimations, wobbleAnimation], }) -export class HomeComponent {} +export class HomeComponent { + isWobbling = true; + + onwobbleDone() { + this.isWobbling = !this.isWobbling; + } +}