A Plug & Play Adapter for the new Anime.js 4 Version.
animate and timeline. More functions and helpers are planned!JSAnimation object and methods returned by Anime.js for fine-grained control.Install the Module manually with:
npm install nuxt-anime
Then, add it to your modules in your nuxt.config
export default defineNuxtConfig({
modules: ["nuxt-anime"],
});
That's it! You can now use NuxtAnime in your Nuxt app ✨
<script>
const box = useTemplateRef("box");
const anim = await useAnimate(box, {
autoplay: false,
x: 100,
rotate: 360,
});
</script>
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
Published under the MIT License