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.

referenceslists.md

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

Animating lists (v-for)

Add, remove, reorder

Wrap the v-for in <AnimeTransitionGroup>. New items run the enter animation, removed items the leave animation, and the rest slide to their new positions. See transitions.md, including staggering.

Draggable items

Give each item its own component, with useDraggable inside it. To drop an item out of the list, hide its handle with v-if inside an <AnimeTransition> and remove it from the array only in @after-leave. useDraggable reverts its draggable when the component unmounts, and the revert moves the element back to where the drag started. Removing the item on release makes it jump back to its slot before it fades.

Entrance stagger without a transition group

Target the items through the container ref, not a v-for ref array.

import { stagger } from '#nanime/utils'

const grid = useTemplateRef('grid')

useAnimate(
  () => grid.value ? [...grid.value.querySelectorAll<HTMLElement>('.card')] : [],
  { opacity: [0, 1], translateY: [40, 0], delay: stagger(80, { grid: [4, 3], from: 'center' }) },
)

A getter over a v-for ref array changes identity whenever the list grows. That rebuilds the animation, so every card replays. The getter above tracks only grid, which settles once at mount.

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