Skip to content

Instantly share code, notes, and snippets.

@thisiszoaib
Created October 29, 2020 07:45
Show Gist options
  • Select an option

  • Save thisiszoaib/40dbcdbb077b1f241b353c6afbc8d3a8 to your computer and use it in GitHub Desktop.

Select an option

Save thisiszoaib/40dbcdbb077b1f241b353c6afbc8d3a8 to your computer and use it in GitHub Desktop.
card flip 3
@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