docs: add transition example

This commit is contained in:
braks
2022-10-07 23:49:03 +02:00
parent 40d59d9d84
commit 447699cb05
11 changed files with 265 additions and 7 deletions
+3 -2
View File
@@ -62,9 +62,9 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
Components({
dirs: [resolve(__dirname, './../../components')],
deep: true,
// allow auto load markdown components under `./src/components/`
// allow to autoload markdown components under `./src/components/`
extensions: ['vue', 'md'],
// allow auto import and register components used in markdown
// allow auto-import and register components used in markdown
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
dts: resolve(__dirname, '../components.d.ts'),
resolvers: [IconsResolver()],
@@ -173,6 +173,7 @@ export default defineConfigWithTheme<DefaultTheme.Config>({
{ text: 'Horizontal Flow', link: '/examples/horizontal' },
{ text: 'Interactions', link: '/examples/interaction' },
{ text: 'Teleport', link: '/examples/teleport' },
{ text: 'Transition', link: '/examples/transition' },
{ text: 'Multiple Flows', link: '/examples/multi' },
{ text: 'Pinia', link: '/examples/pinia' },
{ text: 'Stress', link: '/examples/stress' },
+17
View File
@@ -0,0 +1,17 @@
---
layout: page
---
# Transition
Vue Flow allows you to use transitions while zooming and panning around the Viewport.
This example shows you how to use these transitions to animate actions on your graph.
<div class="mt-6">
<ClientOnly>
<Suspense>
<Repl example="transition"></Repl>
</Suspense>
</ClientOnly>
</div>