Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created July 12, 2017 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/8ae9374b1c9cfd0aae8f6c0789d4b044 to your computer and use it in GitHub Desktop.
Save matthieu-D/8ae9374b1c9cfd0aae8f6c0789d4b044 to your computer and use it in GitHub Desktop.
@Component({
selector: 'page-home',
templateUrl: 'home.html',
animations: [
trigger('elementState', [
state('opaque', style({
opacity: 1
})),
state('transparent', style({
opacity: 0
})),
transition('opaque => transparent', animate('4000ms ease-in')),
transition('transparent => opaque', animate('4000ms ease-out'))
])
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment