Home / Type/ Animation Type — svelte Architecture

Animation Type — svelte Architecture

Architecture documentation for the Animation type/interface in types.d.ts from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  cbc465ea_fa0f_da17_0bf3_c0905c1ad066["Animation"]
  81013f80_b5c2_1ec2_be08_8c26dac8438e["types.d.ts"]
  cbc465ea_fa0f_da17_0bf3_c0905c1ad066 -->|defined in| 81013f80_b5c2_1ec2_be08_8c26dac8438e
  style cbc465ea_fa0f_da17_0bf3_c0905c1ad066 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/types.d.ts lines 126–135

export interface Animation {
	/** Abort the animation */
	abort: () => void;
	/** Allow the animation to continue running, but remove any callback. This prevents the removal of an outroing block if the corresponding intro has a `delay` */
	deactivate: () => void;
	/** Resets an animation to its starting state, if it uses `tick`. Exposed as a separate method so that an aborted `out:` can still reset even if the `outro` had already completed */
	reset: () => void;
	/** Get the `t` value (between `0` and `1`) of the animation, so that its counterpart can start from the right place */
	t: () => number;
}

Frequently Asked Questions

What is the Animation type?
Animation is a type/interface in the svelte codebase, defined in packages/svelte/src/internal/client/types.d.ts.
Where is Animation defined?
Animation is defined in packages/svelte/src/internal/client/types.d.ts at line 126.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free