Last active
March 18, 2017 20:02
-
-
Save matthieu-D/a94b45fcab4e451e3ac65a0d98bffab3 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({ | |
. | |
. | |
. | |
state('zero', style({ transform: 'translateX(0)' })), | |
state('one', style({ transform: 'translateX(50%)' })), | |
transition('zero => one', animate('500ms ease-in')), | |
transition('one => zero', animate('500ms ease-in') | |
// or | |
//transition('one <=> zero', animate('500ms ease-in')) | |
]) | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment