@hilux/ngx-motion 1.0.9 → 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.
Files changed (2) hide show
  1. package/README.md +51 -22
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,24 +1,53 @@
1
1
  # NgxMotion
2
2
 
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 19.1.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project ngx-motion` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-motion`.
8
- > Note: Don't forget to add `--project ngx-motion` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build ngx-motion` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build ngx-motion`, go to the dist folder `cd dist/ngx-motion` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test ngx-motion` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
3
+ WIP - Trigger and control angular animations with a Framer Motion like workflow in template HTML.
4
+ Generated with [Angular CLI](https://github.com/angular/angular-cli) version 19.1.0.
5
+
6
+ ## MotionDirective
7
+
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
+
26
+ Current Limitations:
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
+
34
+ ## MotionHostComponent
35
+
36
+ WIP - Atempt at Angular version of AnimatePresence.
37
+ So far unable to use @queue as expected using Animation Builder.
38
+ Relying on router event and getLongestDuration to delay the [motion] entry delay.
39
+
40
+ ## MotionService
41
+
42
+ - scrollYProgress
43
+ - registerMotionElement
44
+ - unregisterMotionElement
45
+ - getMotionElements
46
+ - getAllElementsByRoute
47
+ - cancelAllAnimations
48
+ - runAllEnterAnimations
49
+ - runAllExitAnimations
50
+ - runAllEnterAnimationsForRoute
51
+ - getLongestExitDuration
52
+ - getLongestEnterDuration
53
+ - getLongestDurationForRoute
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hilux/ngx-motion",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "A library for Angular motion directives",
5
5
  "main": "bundles/ngx-motion.umd.js",
6
6
  "module": "fesm5/ngx-motion.js",