Skip to content

Commit

Permalink
📝 docs: add docs for pause prop
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Sep 20, 2023
1 parent b9b6ba2 commit 5dde9ae
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ More detailed explanations are provided in the [documentation](https://vue3-marq
| gradient | Boolean | false | Whether to show a gradient overlay |
| gradientColor | Array of 3 RGB values | [255, 255, 255] | The RGB colors for the color of the gradient |
| gradientLength | String | 200px | Length of portion of the container edges that should be taken by the gradient overlay |
| pause | Boolean | false | A reactive prop to pause the marquee |
| pauseOnHover | Boolean | false | Whether to pause the marquee on hover |
| pauseOnClick | Boolean | false | Whether to pause the marquee when you hold the right click button |
| clone | Boolean | false | Whether to clone the content if you want no empty spaces in the animation |
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.introduction/1.installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pnpm add vue3-marquee@latest
::

::alert{type="warning"}
If you upgrading from v3 to v4, please remove the `dist/style.css` import from your project. This css is now imported automatically by the plugin. For more information, see [Migrating from v3 to v4](/introduction/v4).
If you are upgrading from v3 to v4, please remove the `dist/style.css` import from your project. This css is now imported automatically by the plugin. For more information, see [Migrating from v3 to v4](/introduction/v4).
::

::alert{type="success"}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.introduction/2.vue-3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Usage with Vue 3

::alert{type="warning"}
If you upgrading from v3 to v4, please remove the `dist/style.css` import from your main.js or main.ts file. This css is now imported automatically by the plugin.
If you are upgrading from v3 to v4, please remove the `dist/style.css` import from your main.js or main.ts file. This css is now imported automatically by the plugin.
::

## Register the component
Expand Down
2 changes: 1 addition & 1 deletion docs/content/1.introduction/3.nuxt-3.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Usage with Nuxt 3

::alert{type="warning"}
If you upgrading from v3 to v4, please remove the `dist/style.css` import from your `app.vue` file. This css is now imported automatically by the plugin.
If you are upgrading from v3 to v4, please remove the `dist/style.css` import from your `app.vue` file. This css is now imported automatically by the plugin.
::

## Register the component
Expand Down
8 changes: 8 additions & 0 deletions docs/content/2.api/1.props.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ What portion of the container edges should be taken by the gradient overlay.

[`gradientLength demo`](/examples#image-marquee-with-a-gradient)

## `pause` :badge[new]{type="success"}

A reactive prop to pause the marquee animation.

| Type | Default value | Required | Accepted values |
| ------- | ------------- | -------- | ----------------- |
| Boolean | `false` | no | `true` or `false` |

## `pauseOnHover`

Whether to pause the marquee on hover
Expand Down
2 changes: 1 addition & 1 deletion docs/content/3.examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Vertical marquees are still experimental. All props and events are supported, bu
::

::alert{type="success"}
All props (including `clone`) and events are supported for vertical marquees. The only difference is that the [`vertical`](/api/props#vertical) prop is set to `true`.
All props (including `clone`) and events are supported for vertical marquees. The only difference is that the [`vertical`](/api/props#vertical) prop needs to be set to `true`.
::

::code-group
Expand Down
1 change: 1 addition & 0 deletions packages/vue3-marquee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ More detailed explanations are provided in the [documentation](https://vue3-marq
| gradient | Boolean | false | Whether to show a gradient overlay |
| gradientColor | Array of 3 RGB values | [255, 255, 255] | The RGB colors for the color of the gradient |
| gradientLength | String | 200px | Length of portion of the container edges that should be taken by the gradient overlay |
| pause | Boolean | false | A reactive prop to pause the marquee |
| pauseOnHover | Boolean | false | Whether to pause the marquee on hover |
| pauseOnClick | Boolean | false | Whether to pause the marquee when you hold the right click button |
| clone | Boolean | false | Whether to clone the content if you want no empty spaces in the animation |
Expand Down

1 comment on commit 5dde9ae

@vercel
Copy link

@vercel vercel bot commented on 5dde9ae Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue3-marquee – ./

vue3-marquee.vercel.app
vue3-marquee-git-main-megasanjay.vercel.app
vue3-marquee-megasanjay.vercel.app

Please sign in to comment.