Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active March 18, 2017 20:02
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/a94b45fcab4e451e3ac65a0d98bffab3 to your computer and use it in GitHub Desktop.
Save matthieu-D/a94b45fcab4e451e3ac65a0d98bffab3 to your computer and use it in GitHub Desktop.
@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