Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add short explanations to motion directives #130

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/content/2.features/1.directive-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Once put on an element, the v-motion will allow you to write your variants as pr

The supported variants props are the following:

- **`initial`**
- **`enter`**
- **`visible`**
- **`visible-once`**
- **`hovered`**
- **`focused`**
- **`tapped`**
- **`initial`**: The properties the element will equip before it is mounted.
- **`enter`**: The properties the element will equip after it is mounted.
- **`visible`**: The properties the element will equip every time it is within view. Once it is out of view, the `initial` properties will be applied.
- **`visible-once`**: The properties the element will equip once it is within view.
- **`hovered`**: The properties the element will equip when the pointer enters its area.
- **`focused`**: The properties the element will equip when the element receives focus.
- **`tapped`**: The properties the element will equip upon clicking (mouse) or tapping (touch devices).

You can also pass your variants as an object using the `:variants` prop.

Expand Down