@cliquify.me/elements-ui 9.0.12 → 9.0.14
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/animated/keyframe-presets.d.ts +21 -0
- package/dist/index.es.js +3055 -2995
- package/package.json +6 -6
|
@@ -2,6 +2,27 @@ import { ICompositionAnimation } from '@cliquify.me/types';
|
|
|
2
2
|
|
|
3
3
|
export type KeyframePresetName = "fadeIn" | "fadeOut" | "slideInLeft" | "slideInRight" | "slideInTop" | "slideInBottom" | "slideOutLeft" | "slideOutRight" | "slideOutTop" | "slideOutBottom" | "scaleIn" | "scaleOut" | "rotateIn" | "rotateOut" | "bounceIn" | "bounceOut" | "elasticIn" | "elasticOut" | "flipInX" | "flipInY" | "flipOutX" | "flipOutY" | "zoomIn" | "zoomOut" | "blurIn" | "blurOut" | "brightnessIn" | "brightnessOut" | "blur" | "vignette" | "chromaticAberration" | "noise" | "pixelate" | "grayscale" | "contrast" | "brightness" | "hue" | "saturation" | "lightLeak" | "duotone" | "skewIn" | "skewOut" | "pulse" | "shake" | "wiggle" | "swing" | "maskRevealIn" | "maskRevealSlideIn" | "maskRevealSlideOut" | "maskRevealCenterIn" | "maskRevealCornerIn" | "maskRevealBlurIn" | "maskRevealBlurOut" | "textGridMarquee" | "inwardEchoes" | "cardFlip" | "noiseTile" | "disappearIn" | "blurV2In" | "blurSlide" | "spinIn" | "spinOut";
|
|
4
4
|
export declare const keyframePresets: Record<KeyframePresetName, ICompositionAnimation>;
|
|
5
|
+
/**
|
|
6
|
+
* The curve an animation should run on.
|
|
7
|
+
*
|
|
8
|
+
* **An animation carries its easing twice and only one of the two survives
|
|
9
|
+
* being saved.** `ease` is a live function, written by the editor's animation
|
|
10
|
+
* panel the moment someone picks an acceleration; `easing` is the name that
|
|
11
|
+
* function came from. A project is stored as JSON, and JSON cannot hold a
|
|
12
|
+
* function — so every animation comes back from storage with the name intact
|
|
13
|
+
* and `ease` gone.
|
|
14
|
+
*
|
|
15
|
+
* Reading only `ease` therefore meant that every saved animation played at a
|
|
16
|
+
* constant speed, whatever acceleration was chosen, on every item this package
|
|
17
|
+
* draws. It was invisible because the animation still ran: it ran linearly.
|
|
18
|
+
*
|
|
19
|
+
* So: use the live function when there is one — it may be a bespoke curve that
|
|
20
|
+
* no name describes — and otherwise rebuild it from the name.
|
|
21
|
+
*/
|
|
22
|
+
export declare const resolveEase: (anim: {
|
|
23
|
+
ease?: unknown;
|
|
24
|
+
easing?: unknown;
|
|
25
|
+
}) => ((t: number) => number);
|
|
5
26
|
export declare const getEasingFromString: (easing: string) => ((t: number) => number);
|
|
6
27
|
export declare const createKeyframeAnimation: (presetName: KeyframePresetName, options?: {
|
|
7
28
|
id?: string;
|