Particle Logo

Add a particle logo animation to Nuxt 3

Drop PixelLogoLoader.vue into Nuxt 3’s components/ folder and wrap it in <ClientOnly> so particle coordinates initialize safely in the browser.

Updated

1. Drop in the Vue 3 component

Export the Vue 3 single-file component from the workbench (Pro plan) and save it to components/PixelLogoLoader.vue so Nuxt auto-imports it across pages.

2. Wrap with <ClientOnly>

Wrap the component in Nuxt's built-in <ClientOnly> with a matching fallback height so SSR renders cleanly without layout shift:

<template>
  <ClientOnly>
    <PixelLogoLoader variant="vortex" :height="340" :duration="3.2" />
    <template #fallback>
      <div style="height: 340px" aria-hidden="true" />
    </template>
  </ClientOnly>
</template>

You can also bind the progress prop to Nuxt loading hooks. See the Vue 3 guide for the complete props reference.

Open the workbench

More guides