@a4ui/core 0.11.0 → 0.11.1
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/dist/index.d.ts +2 -2
- package/dist/index.js +802 -784
- package/dist/lib/motion.d.ts +19 -1
- package/package.json +1 -1
package/dist/lib/motion.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { animate, inView, scroll, stagger, spring } from 'motion';
|
|
1
2
|
import { Accessor } from 'solid-js';
|
|
2
|
-
export { animate, inView, scroll, stagger, spring }
|
|
3
|
+
export { animate, inView, scroll, stagger, spring };
|
|
3
4
|
/**
|
|
4
5
|
* Snapshot of the user's reduced-motion preference at call time. Not
|
|
5
6
|
* reactive to preference changes mid-session (matches theme.ts's one-shot
|
|
@@ -74,3 +75,20 @@ export declare function animateIn(el: Element, opts?: {
|
|
|
74
75
|
duration?: number;
|
|
75
76
|
delay?: number;
|
|
76
77
|
}): void;
|
|
78
|
+
/**
|
|
79
|
+
* Reveal an element the first time it scrolls into view (fade + slide up), using
|
|
80
|
+
* Motion's `inView`. Reveals once (won't re-flash on re-entry) and is a no-op
|
|
81
|
+
* under reduced motion (the element stays visible). Returns a stop function.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```tsx
|
|
85
|
+
* let el!: HTMLDivElement
|
|
86
|
+
* onMount(() => revealOnScroll(el, { amount: 0.3 }))
|
|
87
|
+
* return <section ref={el}>…</section>
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
export declare function revealOnScroll(el: Element, opts?: {
|
|
91
|
+
y?: number;
|
|
92
|
+
duration?: number;
|
|
93
|
+
amount?: number;
|
|
94
|
+
}): () => void;
|
package/package.json
CHANGED