@any-tdf/vue-motion
@any-tdf/vue-motion
@any-tdf/vue-motion is an independent Vue animation toolkit used by VTDF. It provides Vue bindings and framework-neutral functions modeled after Svelte easing, transition, animate, and motion APIs.
Install
bun add @any-tdf/vue-motion vue
Vue is required for the Vue bindings. The easing and transition functions can be imported independently.
Usage
<script setup lang="ts">
import { Transition } from '@any-tdf/vue-motion/vue';
</script>
<template>
<Transition :visible="true" transition="fly" :params="{ y: 24, duration: 300 }">
<div>Content</div>
</Transition>
</template>
import { cubicOut } from '@any-tdf/vue-motion/easing';
import { spring } from '@any-tdf/vue-motion/motion';
Public modules
@any-tdf/vue-motion/easing: easing functions.@any-tdf/vue-motion/transition: transition functions.@any-tdf/vue-motion/animate: FLIP animation helpers.@any-tdf/vue-motion/motion: spring and tweened values.@any-tdf/vue-motion/vue: Vue components and composables.
Development
The bilingual documentation app lives beside the package source in packages/vue-motion/docs.
bun run --filter @any-tdf/vue-motion check
bun run --filter @any-tdf/vue-motion test
bun run --filter @any-tdf/vue-motion build
bun run --filter @any-tdf/vue-motion-site dev
Links
License
@any-tdf/vue-motion is released under the MIT License.
Related Packages
animation-list
Animation rendering based on Vue3 list elements (supports animation callbacks)
1,135
1
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.1 | ^3.5.0 | MIT |
Pre-releases (2)
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.0-alpha.3 | ^3.5.0 | MIT | |
| 0.0.0-alpha.1 | ^3.5.0 | MIT |