Index of every page on this site: llms.txt
All skills
onmax avatar

/nanime

@b4e1a3f official
by Maxonmax/nuxt-skills729 stars
38
Run it yourself

Build animations in a Nuxt app with nanime, the Nuxt module wrapping Anime.js v4. Use when animating elements, text, SVG or scroll in Nuxt: useAnimate, useWaapiAnimate, useAnimatable, useAnimeTimeline, useDraggable, useSplitText, useScrambleText, useAnimeScroll, useAnimeLayout, <AnimeTransition>, <AnimeTransitionGroup>, <AnimeLayoutGroup>, transition styles, component defaults, provideAnimeDefaults and the #nanime/* aliases. Also use when an effect seems to need raw animejs, GSAP or CSS transition classes. Most mistakes here do not throw; they animate the wrong thing.

Use this Skill: https://skilld.dev/gh/onmax/nuxt-skills/nanime

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesverifying.md

≈505 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Verifying an animation without a browser

Don't watch the page. Mount the component, seek its instance, and read the styles.

Setup

The Nuxt app under test must register the module:

// nuxt.config.ts
export default defineNuxtConfig({ modules: ['nanime'] })

If you get Missing "#nanime/..." specifier or the composables are undefined, the module isn't registered in the app that vitest runs. The problem is not the import path, so don't switch to raw animejs imports.

Trace

// component: defineExpose({ tl })
const wrapper = await mountSuspended(Hero)
await new Promise(r => setTimeout(r, 0))   // let mount-time builds flush
const { tl } = wrapper.vm
tl.pause()

const at = (t: number) => (tl.seek(t), el.style.transform)
expect(at(0)).toContain('translateX(-100%)')
expect(at(400)).toContain('translateX(0%)')
  • Assert the start, a midpoint, the end of each segment, and tl.duration.
  • Anime.js writes x/y together as translate(x, y), so parse the numbers instead of matching translateX(.
  • For data-driven updates, change the reactive value mid-flight and check that the value continues from where it was without snapping to the start. That only works with keepTime (SKILL.md, "Rebuilds restart the animation").

happy-dom gaps

These gaps are in the test environment. Your code isn't at fault.

Symptom Polyfill
useSplitText: Cannot read properties of undefined (reading 'status') document.fonts = { status: 'loaded', ready: Promise.resolve() }
useAnimeLayout().patch() or <AnimeTransitionGroup> moves: $el.animate is not a function, reported as an unhandled rejection a stub Element.prototype.animate that returns an object with play/pause/cancel/finish, playbackRate, onfinish/oncancel/onremove and a finished promise

happy-dom does no layout, so every rect is 0. Drag distance, scroll progress and layout slide distance can't be measured here. For those, assert that the instance ran and where it ended up.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts18d3 checks · Risk SAFE
  • Gen Agent Trust Hub18d

    The skill provides instructions for using the nanime Nuxt module. It is generally safe but identifies an indirect prompt injection surface through animation tools that process dynamic data without explicit sanitization requirements.

  • Socket18d

    No alerts

  • Snyk18d

    Risk: LOW · No issues

Signed by skilld at b4e1a3f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated 3 weeks ago

README badge

README badge for onmax/nuxt-skills/nanime