Created
July 4, 2018 09:44
-
-
Save ravivit9/de2826f92a9ef34887f7a4378026560e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'app-actions', | |
templateUrl: './actions.component.html', | |
styleUrls: ['./actions.component.scss'], | |
animations: [ | |
trigger('slideInOut', [ | |
state('in', style({ | |
'max-height': '500px', 'opacity': '1', 'visibility': 'visible' | |
})), | |
state('out', style({ | |
'max-height': '0px', 'opacity': '0', 'visibility': 'hidden' | |
})), | |
transition('in => out', [group([ | |
animate('400ms ease-in-out', style({ | |
'opacity': '0' | |
})), | |
animate('600ms ease-in-out', style({ | |
'max-height': '0px' | |
})), | |
animate('700ms ease-in-out', style({ | |
'visibility': 'hidden' | |
})) | |
] | |
)]), | |
transition('out => in', [group([ | |
animate('1ms ease-in-out', style({ | |
'visibility': 'visible' | |
})), | |
animate('600ms ease-in-out', style({ | |
'max-height': '500px' | |
})), | |
animate('800ms ease-in-out', style({ | |
'opacity': '1' | |
})) | |
] | |
)]) | |
]), | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment