Skip to content

Commit 4c43a52

Browse files
committed
update rules and fix single wrong check
1 parent e0a7f41 commit 4c43a52

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

packages/interact/rules/full-lean.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,9 @@ Exactly one MUST be provided per time-based or scroll/pointer-driven effect:
504504
| Entrance | `FadeIn`, `GlideIn`, `SlideIn`, `FloatIn`, `RevealIn`, `ExpandIn`, `BlurIn`, `FlipIn`, `ArcIn`, `ShuttersIn`, `CurveIn`, `DropIn`, `FoldIn`, `ShapeIn`, `TiltIn`, `WinkIn`, `SpinIn`, `TurnIn`, `BounceIn` |
505505
| Ongoing | `Pulse`, `Spin`, `Breathe`, `Bounce`, `Wiggle`, `Flash`, `Flip`, `Fold`, `Jello`, `Poke`, `Rubber`, `Swing`, `Cross` |
506506
| Scroll | `FadeScroll`, `RevealScroll`, `ParallaxScroll`, `MoveScroll`, `SlideScroll`, `GrowScroll`, `ShrinkScroll`, `TiltScroll`, `PanScroll`, `BlurScroll`, `FlipScroll`, `SpinScroll`, `ArcScroll`, `ShapeScroll`, `ShuttersScroll`, `SkewPanScroll`, `Spin3dScroll`, `StretchScroll`, `TurnScroll` |
507-
| Mouse | `TrackMouse`, `Tilt3DMouse`, `Track3DMouse`, `SwivelMouse`, `AiryMouse`, `ScaleMouse`, `BlurMouse`, `SkewMouse`, `BlobMouse`, `BounceMouse`, `SpinMouse` |
507+
| Mouse | `TrackMouse`, `Tilt3DMouse`, `Track3DMouse`, `SwivelMouse`, `AiryMouse`, `ScaleMouse`, `BlurMouse`, `SkewMouse`, `BlobMouse` |
508508
- **CRITICAL** — Scroll presets (`*Scroll`) used with `viewProgress` MUST include `range` in options: `'in'` (ends at idle state), `'out'` (starts from idle state), or `'continuous'` (passes through idle). Prefer `'continuous'`.
509509
- Mouse presets are preferred over `keyframeEffect` for `pointerMove` 2D effects.
510-
- The mouse category also exports `CustomMouse`, which is a factory taking a `customEffect` callback rather than a ready-made preset. It cannot be used as a `namedEffect` (a `namedEffect` and a `customEffect` are mutually exclusive payloads) — reach for `customEffect` directly instead.
511-
- `@wix/motion-presets` additionally exports experimental `Bg*` background-scroll presets marked NOT PRODUCTION READY in source. `import * as presets` pulls them in; do not use them in generated configs.
512510
513511
2. **`keyframeEffect`** — custom keyframe animations.
514512

packages/interact/rules/pointermove.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ type PointerMoveParams = {
3939
- `hitArea` — determines where mouse movement is tracked. **Omitting it behaves as `'root'`**: only an explicit `'self'` scopes tracking to the source element.
4040
- `'self'` — tracks pointer within the source element's bounds only. Use for local pointer-tracking effects on a specific element.
4141
- `'root'` (default) — tracks pointer anywhere in the viewport. Use for global cursor followers, ambient effects.
42-
- Note: `@wix/interact-validate` still treats an **omitted** `hitArea` as at risk of hit-area shift and will raise `HIT_AREA_SHIFT` for a geometry-changing effect on the source. Set `hitArea: 'root'` explicitly to silence it, which also states the intent.
4342
- `axis` — restricts pointer tracking to a single axis. Used with `keyframeEffect` to map one axis to 0–1 progress; ignored by `namedEffect` and `customEffect` which receive the full 2D progress:
4443
- `'x'` — maps horizontal pointer position to 0–1 progress for keyframe interpolation.
4544
- `'y'` — maps vertical pointer position to 0–1 progress for keyframe interpolation. **Default** when `keyframeEffect` is used.

0 commit comments

Comments
 (0)