nanime
v0.0.8
Published
Nuxt module for animejs integration and transitions
Readme
nanime
This module provides a set of SSR safe composables and components to make it easier to use AnimeJS in your Nuxt application.
Features
- Help to integrate animejs into your project without the need for much boilerplate codes
- SSR Safe components like
useAnimate,useWaapiAnimate, ..etc - Provides a set of transition components created with the
waapiutility - Doesn't include predefined animation settings other than
animejsdefaults - Zero-config setup needed
Quick Setup
Installation with nuxt module command
Install the module to your Nuxt application with one command:
npx nuxt module add nanimeManual install
npm install nanimeThen add the module to the modules section of your nuxt.config.ts:
export default defineNuxtConfig({
modules: ['nanime'],
nanime: { ... },
})That's it! You can now use the module in your application
Contribution
# 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