Files
nuxt/plugins/parallax/index.ts
2025-05-08 21:00:30 -04:00

12 lines
230 B
TypeScript

import Rellax from "rellax";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.directive("parallax", {
mounted(el, binding, vnode, prevVnode) {
Rellax(el, {
round: true,
});
},
});
});