Home / Function/ getAnimations() — astro Function Reference

getAnimations() — astro Function Reference

Architecture documentation for the getAnimations() function in transition.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  f7edef03_fcb6_4581_e5fd_76025f5f44d5["getAnimations()"]
  f4a9c12d_07bd_6de6_237f_8553c55f6fef["transition.ts"]
  f7edef03_fcb6_4581_e5fd_76025f5f44d5 -->|defined in| f4a9c12d_07bd_6de6_237f_8553c55f6fef
  76c15535_9f6b_845e_9f22_f5c86e52ea7b["renderTransition()"]
  76c15535_9f6b_845e_9f22_f5c86e52ea7b -->|calls| f7edef03_fcb6_4581_e5fd_76025f5f44d5
  style f7edef03_fcb6_4581_e5fd_76025f5f44d5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/server/transition.ts lines 29–33

const getAnimations = (name: TransitionAnimationValue) => {
	if (name === 'fade') return fade();
	if (name === 'slide') return slide();
	if (typeof name === 'object') return name;
};

Domain

Subdomains

Called By

Frequently Asked Questions

What does getAnimations() do?
getAnimations() is a function in the astro codebase, defined in packages/astro/src/runtime/server/transition.ts.
Where is getAnimations() defined?
getAnimations() is defined in packages/astro/src/runtime/server/transition.ts at line 29.
What calls getAnimations()?
getAnimations() is called by 1 function(s): renderTransition.

Analyze Your Own Codebase

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

Try Supermodel Free