Image Fly-In in Vue.
Imagery continuously flies in from deep inside the page toward the viewer, fading in and out around a central zone that stays clear for your content. The whole field glides softly with your cursor.
Install Image Fly-In in your Vue project
Image Fly-In ships as a copy-paste Vue 3 single-file component. The only dependency is GSAP - Vue's reactivity and lifecycle hooks replace the React useGSAP adapter, so no extra package is needed.
Where it goes in your Vue app
Image Fly-In is a leaf-level interactive component. Drop it into any page, layout, or other component. It works in Vue 3 + Vite, Nuxt 3, and any standalone Vue setup.
In Nuxt, no special handling is needed - the component is client-safe and self-cleaning. If you want to ensure it never runs on the server (rare), wrap your usage in <ClientOnly>.
The component uses the <script setup> composition API and TypeScript-friendly defineProps.
images prop mirrors the vanilla markup
Ticker teardown in onBeforeUnmount
Common questions
- Does Image Fly-In work in Nuxt 3?
- Yes. Drop it into any page or component. The component is client-safe; Nuxt handles the SSR boundary automatically. If you want explicit client-only rendering, wrap in
. - Does Image Fly-In work with Vue 2?
- No - the component uses the Vue 3 Composition API and
syntax. Vue 2 support is not planned. If you need Vue 2, the HTML/CSS/JS variant works in any context. - Does Image Fly-In work with TypeScript in Vue?
- Yes. The component is typed and works with both
vue-tscand Volar. Props match thedata-anm-*attributes documented on the main detail page. - Will the animation flash before hydration in Nuxt SSR?
- Brief flash is possible because GSAP needs the client to initialize. The component sets the parked state via
gsap.setononMountedbefore the first paintable frame. For above-the-fold use in SSR contexts, add a CSS opacity:0 default that the component clears.
Copy the Vue code
The full Vue implementation lives on the component page, with the live demo, every format side by side, and the ability to edit and re-run it in the browser.
Open Image Fly-In