You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/1.getting-started/1.introduction.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ description: "Let's get started with `@vueuse/motion`."
6
6
::person
7
7
::
8
8
9
-
[**CodeSandbox**](https://codesandbox.io/s/vueusemotion-me1jn?file=/src/components/Person.vue) for this example.
9
+
[CodeSandbox](https://codesandbox.io/s/vueusemotion-me1jn?file=/src/components/Person.vue) for this example.
10
10
11
-
Illustration from [**Pebble People**](https://blush.design/fr/collections/pebble-people) by [**Deivid Saenz**](https://blush.design/fr/artists/deivid-saenz).
11
+
Illustration from [Pebble People](https://blush.design/fr/collections/pebble-people) by [Deivid Saenz](https://blush.design/fr/artists/deivid-saenz).
12
12
13
13
```bash
14
14
yarn add @vueuse/motion
@@ -48,12 +48,12 @@ export default {
48
48
49
49
## Usage
50
50
51
-
- How to use **directives**? Check out [**Directive Usage**](/features/directive-usage).
51
+
- How to use directives? Check out [Directive Usage](/features/directive-usage).
52
52
53
-
- What **properties** you can **animate**? Check out [**Motion Properties**](/features/motion-properties).
53
+
- What properties you can animate? Check out [Motion Properties](/features/motion-properties).
54
54
55
-
- How to **create** your own **animations** styles? Check out [**Transition Properties**](/features/transition-properties).
55
+
- How to create your own animations styles? Check out [Transition Properties](/features/transition-properties).
56
56
57
-
- What are **variants** and how you can **use** them? Check out [**Variants**](/features/variants).
57
+
- What are variants and how you can use them? Check out [Variants](/features/variants).
58
58
59
-
- How to **control** your declared **variants**? Check out [**Motion Instance**](/features/motion-instance).
59
+
- How to control your declared variants? Check out [Motion Instance](/features/motion-instance).
Copy file name to clipboardExpand all lines: docs/content/1.getting-started/2.nuxt.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Nuxt Usage
2
2
3
-
If you are using [**Nuxt**](https://nuxtjs.org/), this package has a specific implementation that makes the declaration of custom directives even easier.
3
+
If you are using [Nuxt](https://nuxtjs.org/), this package has a specific implementation that makes the declaration of custom directives even easier.
4
4
5
5
It is shipped with `@vueuse/motion` and is importable via `@vueuse/motion/nuxt`.
Copy file name to clipboardExpand all lines: docs/content/2.features/0.presets.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ toc: false
6
6
7
7
It allows you to start implementing animations straight after installing the plugin in your Vue app.
8
8
9
-
You can add your own presets to your app using [**Custom Directives**](/features/directive-usage#custom-directives).
9
+
You can add your own presets to your app using [Custom Directives](/features/directive-usage#custom-directives).
10
10
11
-
If you have any ideas for new presets add an issue on [**GitHub**](https://github.com/vueuse/motion#issues), or reach me on [**Twitter**](https://twitter.com/yaeeelglx).
11
+
If you have any ideas for new presets add an issue on [GitHub](https://github.com/vueuse/motion#issues), or reach me on [Twitter](https://twitter.com/yaeeelglx).
Copy file name to clipboardExpand all lines: docs/content/2.features/1.directive-usage.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,13 @@ You can also pass your variants as an object using the `:variants` prop.
28
28
29
29
The `:variants` prop will be combined with all the other native variants properties, allowing you to define only your custom variants from this object.
30
30
31
-
The rest of the variants properties can be found on the [**Variants**](/features/variants) page.
31
+
The rest of the variants properties can be found on the [Variants](/features/variants) page.
32
32
33
33
As a shorthand, you can use the `:delay` prop, that allows you to edit the delay from the element props.
34
34
35
35
If you specified `visible`, `visible-once` or `enter` variant, the delay will be applied to each of them.
36
36
37
-
Otherwise, the delay will be applied on the `initial`[**variant**](/features/variants).
37
+
Otherwise, the delay will be applied on the `initial`[variant](/features/variants).
38
38
39
39
```vue
40
40
<template>
@@ -55,7 +55,7 @@ Otherwise, the delay will be applied on the `initial` [**variant**](/features/va
55
55
56
56
When defined from template, the target element might not be assigned to a ref.
57
57
58
-
You can access motions controls using [**useMotions**](/api/use-motions).
58
+
You can access motions controls using [useMotions](/api/use-motions).
59
59
60
60
If you want to access a v-motion, you will have to give the element a name as v-motion value.
61
61
@@ -84,7 +84,7 @@ const customEvent = () => {
84
84
</script>
85
85
```
86
86
87
-
In the above example, the custom object will be an instance of [**Motion Instance**](/features/motion-instance).
87
+
In the above example, the custom object will be an instance of [Motion Instance](/features/motion-instance).
Copy file name to clipboardExpand all lines: docs/content/2.features/4.transition-properties.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Transition properties are represented by an object containing all transition parameters of a variant.
4
4
5
-
They are one of the two parts that compose a [**Variant**](/features/variants), with [**Motion Properties**](/features/motion-properties).
5
+
They are one of the two parts that compose a [Variant](/features/variants), with [Motion Properties](/features/motion-properties).
6
6
7
7
## Orchestration
8
8
@@ -29,7 +29,7 @@ You can specify a delay which will be added every time the transition is pushed.
29
29
30
30
### Repeat
31
31
32
-
The native [**Popmotion Repeat**](https://popmotion.io/#quick-start-animation-animate-options-repeat) feature is supported.
32
+
The native [Popmotion Repeat](https://popmotion.io/#quick-start-animation-animate-options-repeat) feature is supported.
33
33
34
34
Three parameters are available:
35
35
@@ -61,7 +61,7 @@ Three parameters are available:
61
61
62
62
Two types of animations are supported.
63
63
64
-
For the most [**Common Animatable Properties**](https://github.com/vueuse/motion/blob/main/src/utils/defaults.ts#L43), it will uses generated spring transitions.
64
+
For the most [Common Animatable Properties](https://github.com/vueuse/motion/blob/main/src/utils/defaults.ts#L43), it will uses generated spring transitions.
65
65
66
66
The rest of the properties might be using keyframes.
Copy file name to clipboardExpand all lines: docs/content/2.features/5.variants.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Variants represent an animatable state for your element.
4
4
5
-
They are composed of any [**Motion Properties**](/features/motion-properties) and an optional [**Transition Properties**](/features/transition-properties).
5
+
They are composed of any [Motion Properties](/features/motion-properties) and an optional [Transition Properties](/features/transition-properties).
6
6
7
7
```vue
8
8
<div
@@ -51,7 +51,7 @@ It is recommended to include a base state for each parameter that you are willin
51
51
52
52
The enter variant will be applied on the second tick of the element, right after its creation.
53
53
54
-
You can use it to trigger an animation when the element appears, transitioning from [**Initial**](#initial-variant) variant.
54
+
You can use it to trigger an animation when the element appears, transitioning from [Initial](#initial-variant) variant.
55
55
56
56
```vue
57
57
<div
@@ -91,19 +91,19 @@ The leave variant helps to define the state of an element when it is supposed to
91
91
/>
92
92
```
93
93
94
-
In order to achieve a leave transition, you will have to access the [**Motion Instance**](/features/motion-instance).
94
+
In order to achieve a leave transition, you will have to access the [Motion Instance](/features/motion-instance).
95
95
96
96
This instance exposes an helper called `leave` than can easily be mapped with the Vue transition element @leave event.
97
97
98
-
You can take a look at an example of implementation on the [**Demo**](https://vueuse-motion-demo.netlify.app) page, at the "**Transitions**" section.
98
+
You can take a look at an example of implementation on the [Demo](https://vueuse-motion-demo.netlify.app) page, at the "**Transitions**" section.
99
99
100
100
## Visibility Variants
101
101
102
102
### Visible
103
103
104
104
The visible variant will be applied when the element enters the viewport.
105
105
106
-
When the element leaves, the [**Initial**](#initial-variant) variant will be applied again.
106
+
When the element leaves, the [Initial](#initial-variant) variant will be applied again.
Copy file name to clipboardExpand all lines: docs/content/2.features/6.motion-instance.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Motion Instance
2
2
3
-
Motion instance is the object exposed when binding to a target element using [**v-motion**](/features/directive-usage) or [**useMotion**](/features/composable-usage).
3
+
Motion instance is the object exposed when binding to a target element using [v-motion](/features/directive-usage) or [useMotion](/features/composable-usage).
4
4
5
5
It is composed of three properties, allowing you to interact with the element.
6
6
@@ -51,7 +51,7 @@ This is useful when used with event listeners, or any temporary modification to
51
51
52
52
This is also useful for orchestration, as apply returns a promise, you can await it and chain variant applying.
53
53
54
-
Apply accepts both a [**Variant Declaration**](/features/variants) or a key from the motion instance variants.
54
+
Apply accepts both a [Variant Declaration](/features/variants) or a key from the motion instance variants.
55
55
56
56
```vue
57
57
<script setup lang="ts">
@@ -94,7 +94,7 @@ Stop is a function that lets you stop ongoing animations for a specific element.
94
94
95
95
Calling it without argument will be stopping all the animations.
96
96
97
-
Calling it with an array of [**Motion Properties**](/features/motion-properties) keys will stop every specified key.
97
+
Calling it with an array of [Motion Properties](/features/motion-properties) keys will stop every specified key.
98
98
99
99
Calling it with a single motion property key will stop the specified key.
Copy file name to clipboardExpand all lines: docs/content/3.api/2.use-spring.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# useSpring
2
2
3
-
useSpring is a simpler hook than [**useMotion**](/api/use-motion).
3
+
useSpring is a simpler hook than [useMotion](/api/use-motion).
4
4
5
5
It has been implemented in order for you to implement Spring animations in your apps, without the pain.
6
6
7
7
useSpring can be bound to a HTML or SVG element, or to a simple object.
8
8
9
-
It skips the [**Variants**](/features/variants) system, allowing it to be as performant as using Popmotion natively, but with a nicer **API** to play with Vue refs.
9
+
It skips the [Variants](/features/variants) system, allowing it to be as performant as using Popmotion natively, but with a nicer **API** to play with Vue refs.
10
10
11
11
## Parameters
12
12
@@ -16,7 +16,7 @@ Target can be an element (**SVG** / **HTML**), or an object.
16
16
17
17
### `spring`
18
18
19
-
The spring argument takes a [**Spring definition**](https://popmotion.io/#quick-start-animation-animate-spring-options) from **Popmotion**.
19
+
The spring argument takes a [Spring definition](https://popmotion.io/#quick-start-animation-animate-spring-options) from **Popmotion**.
20
20
21
21
It is optional as a default Spring will be applied if you do not specify it.
0 commit comments