import { Component, OnInit } from '@angular/core'; import { trigger, state, style, animate, transition } from '@angular/animations'; import { fade } from "../animations/transitions"; @Component({ selector: 'test-home', templateUrl: './home.component.html', styleUrls: ['./home.component.css'], animations: [fade()] }) export class HomeComponent implements OnInit { constructor() { } ngOnInit() { } }