### Initialize Astro Framework Hydration Source: https://flightcore.pl/pl/privacy-policy These scripts handle the 'only' and 'idle' hydration patterns for Astro components. They ensure that client-side code is executed either immediately or during browser idle time to optimize performance. ```javascript (()=>{ var e=async t=>{await(await t())()}; (self.Astro||(self.Astro={})).only=e; window.dispatchEvent(new Event("astro:only")); })(); (()=>{ var l=(n,t)=>{ let i=async()=>{await(await n())()}, e=typeof t.value=="object"?t.value:void 0, s={timeout:e==null?void 0:e.timeout}; "requestIdleCallback" in window?window.requestIdleCallback(i,s):setTimeout(i,s.timeout||200) }; (self.Astro||(self.Astro={})).idle=l; window.dispatchEvent(new Event("astro:idle")); })(); ``` -------------------------------- ### Astro Footer View Transition Animations (CSS) Source: https://flightcore.pl/pl/offer/topowi-producenci-songwriterzy Defines CSS animations for the footer view transition in Astro. Similar to the header, it implements fade-in and fade-out effects for new and old views, supporting 'back' transitions and fallback states. The animation utilizes a cubic-bezier timing function for a smooth visual experience. ```css [data-astro-transition-scope="astro-xnnjuuen-5"] { view-transition-name: footer-base; } @layer astro { ::view-transition-old(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ::view-transition-new(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back]::view-transition-old(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back]::view-transition-new(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } } [data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xnnjuuen-5"], [data-astro-transition-fallback="old"][data-astro-transition-scope="astro-xnnjuuen-5"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xnnjuuen-5"], [data-astro-transition-fallback="new"][data-astro-transition-scope="astro-xnnjuuen-5"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back][data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xnnjuuen-5"], [data-astro-transition=back][data-astro-transition-fallback="old"][data-astro-transition-scope="astro-xnnjuuen-5"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back][data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xnnjuuen-5"], [data-astro-transition=back][data-astro-transition-fallback="new"][data-astro-transition-scope="astro-xnnjuuen-5"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } ``` -------------------------------- ### Configure Astro View Transition Animations Source: https://edu.flightcore.pl/ Defines CSS keyframe animations and timing functions for Astro view transitions. It targets specific data attributes to manage fade-in and fade-out effects during page navigation. ```css [data-astro-transition=back]::view-transition-new(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } ``` -------------------------------- ### Define Astro View Transition Styles Source: https://flightcore.pl/pl/prices This CSS snippet configures the Astro View Transitions API for specific UI elements. It defines animation properties such as duration and easing, and assigns view-transition-names to elements to enable smooth cross-page transitions. ```css [data-astro-transition-scope="astro-zafghjeg-4"] { view-transition-name: header-base; } @layer astro { ::view-transition-old(header-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ::view-transition-new(header-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } } ``` -------------------------------- ### Astro Header View Transition Animations (CSS) Source: https://flightcore.pl/pl/offer/topowi-producenci-songwriterzy Defines CSS animations for the header view transition in Astro. It includes fade-in and fade-out effects for both new and old views, with support for 'back' transitions and fallback states. The animation uses a cubic-bezier timing function for a smooth effect. ```css [data-astro-transition-scope="astro-zafghjeg-3"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition-scope="astro-j6szzs3o-4"] { view-transition-name: header-mobile; } @layer astro { ::view-transition-old(header-mobile) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ::view-transition-new(header-mobile) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back]::view-transition-old(header-mobile) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back]::view-transition-new(header-mobile) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } } [data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-j6szzs3o-4"], [data-astro-transition-fallback="old"][data-astro-transition-scope="astro-j6szzs3o-4"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-j6szzs3o-4"], [data-astro-transition-fallback="new"][data-astro-transition-scope="astro-j6szzs3o-4"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back][data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-j6szzs3o-4"], [data-astro-transition=back][data-astro-transition-fallback="old"][data-astro-transition-scope="astro-j6szzs3o-4"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back][data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-j6szzs3o-4"], [data-astro-transition=back][data-astro-transition-fallback="new"][data-astro-transition-scope="astro-j6szzs3o-4"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } ``` -------------------------------- ### Define View Transition Animations in CSS Source: https://flightcore.pl/pl/offer/dzwiekowiec-na-dowoz This CSS snippet configures animation timing, duration, and keyframes for Astro View Transitions. It targets specific elements via data attributes to manage smooth visual transitions between page states. ```css [data-astro-transition-scope="astro-j6szzs3o-4"] { view-transition-name: header-mobile; } @layer astro { ::view-transition-old(header-mobile) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ::view-transition-new(header-mobile) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } } [data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-j6szzs3o-4"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ``` -------------------------------- ### Configure Astro View Transition Animations Source: https://flightcore.pl/pl/offer/mix-mastering-online These CSS rules define the animation timing, duration, and fill modes for Astro view transitions. It includes specific selectors for header and footer elements to ensure smooth visual transitions during navigation. ```css [data-astro-transition-scope="astro-j6szzs3o-4"] { view-transition-name: header-mobile; } @layer astro { ::view-transition-old(header-mobile) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ::view-transition-new(header-mobile) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } } [data-astro-transition-scope="astro-xnnjuuen-5"] { view-transition-name: footer-base; } @layer astro { ::view-transition-old(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ::view-transition-new(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } } ``` -------------------------------- ### Implement Astro Component Hydration Source: https://edu.flightcore.pl/ A JavaScript class extending HTMLElement that handles the lifecycle of Astro islands. It manages component loading, property parsing from JSON attributes, and slot injection for client-side interactivity. ```javascript class f extends HTMLElement { constructor() { super(...arguments); l(this, "Component"); l(this, "hydrator"); l(this, "hydrate", async () => { // Hydration logic implementation let u = this.hasAttribute("props") ? y(JSON.parse(this.getAttribute("props"))) : {}; let m = this.hydrator(this); await m(this.Component, u, n, { client: this.getAttribute("client") }); }); } } ``` -------------------------------- ### Astro View Transition Scope CSS Source: https://flightcore.pl/ Sets the 'view-transition-name' for a specific scope ('footer-base') within Astro's view transition system. This allows for targeted animation of elements within this scope. ```css [data-astro-transition-scope="astro-xnnjuuen-12"] { view-transition-name: footer-base; } ``` -------------------------------- ### Astro View Transition Fade Animations (CSS) Source: https://booking.flightcore.pl/ Defines CSS animations for Astro's view transitions, creating fade-in and fade-out effects. These animations are applied based on the transition state (old/new) and direction (forward/back), targeting specific scopes like 'astro-j6szzs3o-11' and 'astro-xnnjuuen-12'. ```css [data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-j6szzs3o-11"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-j6szzs3o-11"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back][data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-j6szzs3o-11"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back][data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-j6szzs3o-11"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition-scope="astro-xnnjuuen-12"] { view-transition-name: footer-base; } @layer astro { ::view-transition-old(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ::view-transition-new(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back]::view-transition-old(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back]::view-transition-new(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } } [data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xnnjuuen-12"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xnnjuuen-12"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back][data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xnnjuuen-12"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back][data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xnnjuuen-12"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } ``` -------------------------------- ### Astro Fade-In Animation CSS Source: https://flightcore.pl/ Defines the CSS for the 'astroFadeIn' animation, used for elements entering the view during Astro transitions. It applies a cubic-bezier timing function and ensures the animation is applied in both directions. ```css [data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-j6szzs3o-11"], [data-astro-transition-fallback="new"][data-astro-transition-scope="astro-j6szzs3o-11"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back][data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-j6szzs3o-11"], [data-astro-transition=back][data-astro-transition-fallback="new"][data-astro-transition-scope="astro-j6szzs3o-11"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xnnjuuen-12"], [data-astro-transition-fallback="new"][data-astro-transition-scope="astro-xnnjuuen-12"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back][data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-xnnjuuen-12"], [data-astro-transition=back][data-astro-transition-fallback="new"][data-astro-transition-scope="astro-xnnjuuen-12"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } ``` -------------------------------- ### Astro View Transition New Element CSS Source: https://flightcore.pl/ Applies fade-in animations to the 'new' view transition element named 'footer-base'. This is part of Astro's view transition mechanism to animate elements entering the screen. ```css ::view-transition-new(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } [data-astro-transition=back]::view-transition-new(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeIn; } ``` -------------------------------- ### Astro Fade-Out Animation CSS Source: https://flightcore.pl/ Defines the CSS for the 'astroFadeOut' animation, used for elements leaving the view during Astro transitions. It applies a cubic-bezier timing function and ensures the animation is applied in both directions. ```css [data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-j6szzs3o-11"], [data-astro-transition-fallback="old"][data-astro-transition-scope="astro-j6szzs3o-11"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back][data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-j6szzs3o-11"], [data-astro-transition=back][data-astro-transition-fallback="old"][data-astro-transition-scope="astro-j6szzs3o-11"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xnnjuuen-12"], [data-astro-transition-fallback="old"][data-astro-transition-scope="astro-xnnjuuen-12"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back][data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-xnnjuuen-12"], [data-astro-transition=back][data-astro-transition-fallback="old"][data-astro-transition-scope="astro-xnnjuuen-12"] { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ``` -------------------------------- ### Astro View Transition Old Element CSS Source: https://flightcore.pl/ Applies fade-out animations to the 'old' view transition element named 'footer-base'. This is part of Astro's view transition mechanism to animate elements leaving the screen. ```css ::view-transition-old(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } [data-astro-transition=back]::view-transition-old(footer-base) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); animation-fill-mode: both; animation-name: astroFadeOut; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.