UNPKG

809 BTypeScriptView Raw
1import { Animation } from '@ionic/core';
2export declare class AnimationController {
3 /**
4 * Create a new animation
5 */
6 create(animationId?: string): Animation;
7 /**
8 * EXPERIMENTAL
9 *
10 * Given a progression and a cubic bezier function,
11 * this utility returns the time value(s) at which the
12 * cubic bezier reaches the given time progression.
13 *
14 * If the cubic bezier never reaches the progression
15 * the result will be an empty array.
16 *
17 * This is most useful for switching between easing curves
18 * when doing a gesture animation (i.e. going from linear easing
19 * during a drag, to another easing when `progressEnd` is called)
20 */
21 easingTime(p0: number[], p1: number[], p2: number[], p3: number[], progression: number): number[];
22}