Created
May 21, 2017 01:09
-
-
Save golonzovsky/f28d50beae7a7c379ca3594731437373 to your computer and use it in GitHub Desktop.
angular animations
This file contains hidden or 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
animations: [ | |
trigger( | |
'enterAnimation', [ | |
transition(':enter', [style({transform: 'translateX(100%)', opacity: 0}), animate(150)]), | |
transition(':leave', animate(150, style({transform: 'translateX(100%)', opacity: 0}))) | |
] | |
), | |
trigger( | |
'isModalWide', [ | |
state('true', style({width: "750px"})), | |
state('false', style({width: "370px"})), | |
transition('* => *', animate(150)), | |
] | |
) | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment