Pageloading effects for angular, inspired by PageLoadingEffects.
Compatible with angular-route
and angular-ui-router
.
bower install me-pageloading
- include css and js files in your html
- include
me-pageloading
as a angular dependence. - configure
mePageLoadingProvider
, this step is optional.
mePageLoadingProvider
has two options.
-
mePageLoadingProvider.effect
, default torandom
, all available effect names are listed below- Lazy Stretch
- Circle
- Spill
- Frame it
- Tunnel vision
- Windscreen wiper
- Jammed blind
- Parallelogram
- Tilted
- Lateral Swipe
- Wave
- Origami
- Curtain
-
mePageLoadingProvider.autoPageLoading
, whether the pageloading automatically show when$stateChange*
or$routeChange*
event trigger. Default totrue
. If you set tofalse
, you should callmePageLoading#show
ormePageLoading#hide
to show or hide the animation.
mePageLoading.show([effectName])
, show animation, you can specify which animation to show. If not specify, mePageLoading will use theeffect
value set tomePageLoadingProvider
. If no effectName is set tomePageLoadingProvider
, the value israndom
.mePageLoading.hide()
, hide the current animation.
MIT