Created
October 29, 2020 07:45
-
-
Save thisiszoaib/40dbcdbb077b1f241b353c6afbc8d3a8 to your computer and use it in GitHub Desktop.
card flip 3
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
| @Component({ | |
| selector: 'app-game-card', | |
| templateUrl: './game-card.component.html', | |
| styleUrls: ['./game-card.component.scss'], | |
| animations: [ | |
| trigger('cardFlip', [ | |
| state('default', style({ | |
| transform: 'none' | |
| })), | |
| state('flipped', style({ | |
| transform: 'rotateY(180deg)' | |
| })), | |
| transition('default => flipped', [ | |
| animate('400ms') | |
| ]), | |
| transition('flipped => default', [ | |
| animate('200ms') | |
| ]) | |
| ]) | |
| ] | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment