How to make page transition animation in angular2 ?
I try this is code but not working
@Component({
selector:'myPagefirstPage',
})
@View({
template: `<div class="view-animate ng-animate" >
<h1>First Page</h1>
</div>`
And I put my animation class in css file like this
.view-animate.ng-enter {....}
But it doesn't work
As of December 2015, animations are not implemented in Angular 2 beta release, and are due in the final release.
http://angularjs.blogspot.com.au/2015/12/angular-2-beta.html
What comes next?
We're already hard at work on the set of improvements to move Angular 2 to its full and final release. While we will make many small improvements, the big ones for final are:
- Reducing Angular 2's payload size.
- Making the Angular CLI usable end to end throughout the development process.
- Creating a more developer-friendly route definition and link API for the Component Router.
- Support for animations.
- I18n and L10n support.
Edit: Animations are now in - http://angularjs.blogspot.com.au/2016/06/rc2-now-available.html
RC2 Now Available
Today we’re happy to announce that we are shipping Angular 2.0.0-rc2.
This release includes:
- Animation Framework
...