Recently read an article in Codrops, which describes the effect of a page switch, click here for details. See this effect feel very good, feel this effect can be used in angular page switch, so the effect is transplanted into angular, made a angular module, convenient to add similar effect later, directly use.
Github:https://github.com/jeremial/me-pageloading
A good demo effect
- Use with angular-ui-router, effect http://isay.me/me-pageloading/angular-ui-router.html
- Use with Angular-route, effect http://isay.me/me-pageloading/angular-route.html
At present, the entire module can be zero configuration work, but due to the implementation mechanism of the Angular-route, $routeChangeSuccess
after the page initialization will be triggered two times, it will cause the page to enter directly after the effect will be triggered. This problem can be resolved by disabling me-pageloading
automatic loading.
There is no such issue in Angular-ui-router.
Original address: Http://cnodejs.org/topic/53c1132a400ca4581b538e39
Angular Global page Toggle Animation me-pageloading