@hilux/ngx-motion 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -36
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,50 +5,49 @@ Generated with [Angular CLI](https://github.com/angular/angular-cli) version 19.
|
|
|
5
5
|
|
|
6
6
|
## MotionDirective
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
- @Input() initial: any = {};
|
|
9
|
+
- @Input() animate: any = {};
|
|
10
|
+
- @Input() exit: any = {};
|
|
11
|
+
- @Input() inView: any = {};
|
|
12
|
+
- @Input() duration = '0.3s';
|
|
13
|
+
- @Input() delay = '0s';
|
|
14
|
+
- @Input() repeat = false;
|
|
15
|
+
- @Input() exitDelay = '0s';
|
|
16
|
+
- @Input() easing = 'ease';
|
|
17
|
+
- @Input() offset = '0px';
|
|
18
|
+
- @Input() whileHover: any = {};
|
|
19
|
+
- @Input() staggerChildren = '0s';
|
|
20
|
+
- @Input() whileTap: any = {};
|
|
21
|
+
- @Input() whileFocus: any = {};
|
|
22
|
+
- @Input() whileInView: any = {};
|
|
23
|
+
- @Input() variants: any = {};
|
|
24
|
+
- @Output() animationComplete = new EventEmitter<void>();
|
|
25
25
|
|
|
26
26
|
Current Limitations:
|
|
27
|
-
* staggerChildren not running stil in progress
|
|
28
|
-
* dynamic animate values must be generated in ts, you cant use directly in the animate value.
|
|
29
|
-
* InView offset not complete.
|
|
30
|
-
* Repeat & offset only apply to inView animations.
|
|
31
|
-
* exitDelay not complete.
|
|
32
27
|
|
|
28
|
+
- staggerChildren not running still in progress
|
|
29
|
+
- dynamic animate values must be generated in ts, you cant use directly in the animate value.
|
|
30
|
+
- InView offset not complete.
|
|
31
|
+
- Repeat & offset only apply to inView animations.
|
|
32
|
+
- exitDelay not complete.
|
|
33
33
|
|
|
34
34
|
## MotionHostComponent
|
|
35
35
|
|
|
36
36
|
WIP - Atempt at Angular version of AnimatePresence.
|
|
37
|
-
|
|
37
|
+
So far unable to use @queue as expected using Animation Builder.
|
|
38
38
|
Relying on router event and getLongestDuration to delay the [motion] entry delay.
|
|
39
39
|
|
|
40
|
-
|
|
41
40
|
## MotionService
|
|
42
41
|
|
|
43
|
-
scrollYProgress
|
|
44
|
-
registerMotionElement
|
|
45
|
-
unregisterMotionElement
|
|
46
|
-
getMotionElements
|
|
47
|
-
getAllElementsByRoute
|
|
48
|
-
cancelAllAnimations
|
|
49
|
-
runAllEnterAnimations
|
|
50
|
-
runAllExitAnimations
|
|
51
|
-
runAllEnterAnimationsForRoute
|
|
52
|
-
getLongestExitDuration
|
|
53
|
-
getLongestEnterDuration
|
|
54
|
-
getLongestDurationForRoute
|
|
42
|
+
- scrollYProgress
|
|
43
|
+
- registerMotionElement
|
|
44
|
+
- unregisterMotionElement
|
|
45
|
+
- getMotionElements
|
|
46
|
+
- getAllElementsByRoute
|
|
47
|
+
- cancelAllAnimations
|
|
48
|
+
- runAllEnterAnimations
|
|
49
|
+
- runAllExitAnimations
|
|
50
|
+
- runAllEnterAnimationsForRoute
|
|
51
|
+
- getLongestExitDuration
|
|
52
|
+
- getLongestEnterDuration
|
|
53
|
+
- getLongestDurationForRoute
|