layer() — astro Function Reference
Architecture documentation for the layer() function in transition.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 22c90603_4e12_ff50_9628_35770ebd45bf["layer()"] d7cc381c_9294_21bb_a466_854d22d9bf61["ViewTransitionStyleSheet"] 22c90603_4e12_ff50_9628_35770ebd45bf -->|defined in| d7cc381c_9294_21bb_a466_854d22d9bf61 2527a613_a18b_f09f_d953_5ec7867c60a5["toString()"] 2527a613_a18b_f09f_d953_5ec7867c60a5 -->|calls| 22c90603_4e12_ff50_9628_35770ebd45bf style 22c90603_4e12_ff50_9628_35770ebd45bf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/transition.ts lines 151–153
private layer(cssText: string) {
return cssText ? `@layer astro { ${cssText} }` : '';
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does layer() do?
layer() is a function in the astro codebase, defined in packages/astro/src/runtime/server/transition.ts.
Where is layer() defined?
layer() is defined in packages/astro/src/runtime/server/transition.ts at line 151.
What calls layer()?
layer() is called by 1 function(s): toString.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free