Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.

Commit 99907db

Browse files
committed
docs(transitions): add poster for videos
1 parent ce456f8 commit 99907db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/content/1.getting-started/5.transitions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ To start adding transition between your pages, add the following CSS to your [`a
5555

5656
This produces the following result when navigating between pages:
5757

58-
<video controls class="rounded">
58+
<video controls class="rounded" poster="https://res.cloudinary.com/nuxt/video/upload/v1665061349/nuxt3/nuxt3-page-transitions_umwvmh.jpg">
5959
<source src="https://res.cloudinary.com/nuxt/video/upload/v1665061349/nuxt3/nuxt3-page-transitions_umwvmh.mp4" type="video/mp4">
6060
</video>
6161

@@ -96,7 +96,7 @@ definePageMeta({
9696

9797
Moving to the about page will add the 3d rotation effect:
9898

99-
<video controls class="rounded">
99+
<video controls class="rounded" poster="https://res.cloudinary.com/nuxt/video/upload/v1665063233/nuxt3/nuxt3-page-transitions-cutom.jpg">
100100
<source src="https://res.cloudinary.com/nuxt/video/upload/v1665063233/nuxt3/nuxt3-page-transitions-cutom.mp4" type="video/mp4">
101101
</video>
102102

@@ -187,7 +187,7 @@ definePageMeta({
187187

188188
This produces the following result when navigating between pages:
189189

190-
<video controls class="rounded">
190+
<video controls class="rounded" poster="https://res.cloudinary.com/nuxt/video/upload/v1665065289/nuxt3/nuxt3-layouts-transitions_c9hwlx.jpg">
191191
<source src="https://res.cloudinary.com/nuxt/video/upload/v1665065289/nuxt3/nuxt3-layouts-transitions_c9hwlx.mp4" type="video/mp4">
192192
</video>
193193

@@ -360,7 +360,7 @@ const next = computed(() => '/' + (id.value + 1))
360360

361361
The page now applies the `slide-left` transition when going to the next id and `slide-right` for the previous:
362362

363-
<video controls class="rounded">
363+
<video controls class="rounded" poster="https://res.cloudinary.com/nuxt/video/upload/v1665069410/nuxt3/nuxt-dynamic-page-transitions.jpg">
364364
<source src="https://res.cloudinary.com/nuxt/video/upload/v1665069410/nuxt3/nuxt-dynamic-page-transitions.mp4" type="video/mp4">
365365
</video>
366366

0 commit comments

Comments
 (0)