mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(animation): properly update Web Animation, clean up types (#19964)
Co-authored-by: manucorporat <manu.mtza@gmail.com>
This commit is contained in:
@ -220,18 +220,20 @@ export interface Animation {
|
||||
}
|
||||
|
||||
export type AnimationLifecycle = (currentStep: 0 | 1, animation: Animation) => void;
|
||||
export type AnimationKeyFrames = [AnimationKeyFrameEdge, AnimationKeyFrameEdge] | AnimationKeyFrame[];
|
||||
export type AnimationStyles = Record<string, any>;
|
||||
|
||||
export interface AnimationCallbackOptions {
|
||||
oneTimeCallback: boolean;
|
||||
}
|
||||
|
||||
export type AnimationKeyFrames = AnimationKeyFrame[];
|
||||
|
||||
export interface AnimationKeyFrame extends AnimationStyles {
|
||||
offset: number;
|
||||
}
|
||||
|
||||
export type AnimationStyles = Record<string, any>;
|
||||
export interface AnimationKeyFrameEdge extends AnimationStyles {
|
||||
offset?: number;
|
||||
}
|
||||
|
||||
export interface AnimationPlayOptions {
|
||||
sync: boolean;
|
||||
|
Reference in New Issue
Block a user