You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* base-z: the minimal z-index of root. default 10000.
31
-
- with auto-z, ldLoader keeps track of all loaders' z-index and always use larger z-index for newly toggled loaders. base-z is then used as a base value for all auto-z loaders.
31
+
- with auto-z, ldloader keeps track of all loaders' z-index and always use larger z-index for newly toggled loaders. base-z is then used as a base value for all auto-z loaders.
32
32
* ctrl: custom animation control unit. should at least contains a member function "step(t)".
33
33
- step(t): will be invoked repeatedly by requestAnimationFrame during loading period. context (aka this) will be root.
34
-
* atomic: default true. when atomic is false, you will need N ldLoader.off() call to dismiss ldLoader if there was already N ldLoader.on() call.
34
+
* atomic: default true. when atomic is false, you will need N ldloader.off() call to dismiss ldloader if there was already N ldloader.on() call.
35
35
36
36
Methods:
37
37
* on(delay): toggle loader on. return promise. (if delay is provided, wait delay(ms) before on )
@@ -56,9 +56,9 @@ Methods:
56
56
57
57
## Styling and Structure
58
58
59
-
There is no constraint about how ldLoader's DOM structure should be. Basically it contains an element for loader, and the element's parent in which the loader is shown. You control all the animation and effects based on ```active-class``` toggled by ldLoader.
59
+
There is no constraint about how ldloader's DOM structure should be. Basically it contains an element for loader, and the element's parent in which the loader is shown. You control all the animation and effects based on ```active-class``` toggled by ldloader.
60
60
61
-
For convenience, ldLoader is shipped with some builtin css for simple usage:
61
+
For convenience, ldloader is shipped with some builtin css for simple usage:
62
62
63
63
* .ldld.bare - rotating double ring, placed at where it should be.
64
64
* .ldld.default - rotating double ring centered in it's container. container should have style position: relatve/absolute/fixed.
@@ -72,15 +72,15 @@ For convenience, ldLoader is shipped with some builtin css for simple usage:
72
72
* .ldld.light - rgba(255,255,255,.5)
73
73
* .ldld.dark - rgba(0,0,0,.5)
74
74
75
-
You can also use ldLoader along with ```loading-btn``` and ```loading.css```:
75
+
You can also use ldloader along with ```loading-btn``` and ```loading.css```:
0 commit comments