Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 520f5f7

Browse files
docs: add viewport units to translate prop documentation
1 parent 864fd51 commit 520f5f7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

‎documentation/docs/usage/parallax-props.md‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,19 @@ See a demo of [how progress is determined](/docs/examples/how-it-works#progress-
8080

8181
These are all the supported CSS effects:
8282

83-
| Name | Type | Description |
84-
| -------------- | :----------------------: | ------------------------------------------------------------------------------------------------------------------------------------- |
85-
| **translateX** | `string[]` or `number[]` | Start and end translation on x-axis in `%`or `px`. If no unit is passed percent is assumed. Percent is based on the elements width. |
86-
| **translateY** | `string[]` or `number[]` | Start and end translation on y-axis in `%`or `px`. If no unit is passed percent is assumed. Percent is based on the elements height. |
87-
| **rotate** | `string[]` or `number[]` | Start and end rotation on z-axis in `deg`, `rad`, or `turn`. If no unit is passed `deg` is assumed. |
88-
| **rotateX** | `string[]` or `number[]` | Start and end rotation on x-axis in `deg`, `rad`, or `turn`. If no unit is passed `deg` is assumed. |
89-
| **rotateY** | `string[]` or `number[]` | Start and end rotation on y-axis in `deg`, `rad`, or `turn`. If no unit is passed `deg` is assumed. |
90-
| **rotateZ** | `string[]` or `number[]` | Start and end rotation on z-axis in `deg`, `rad`, or `turn`. If no unit is passed `deg` is assumed. |
91-
| **scale** | `number[]` | Start and end scale on x-axis and y-axis. |
92-
| **scaleX** | `number[]` | Start and end scale on x-axis. |
93-
| **scaleY** | `number[]` | Start and end scale on y-axis. |
94-
| **scaleZ** | `number[]` | Start and end scale on z-axis. |
95-
| **opacity** | `number[]` | Start and end opacity value. |
83+
| Name | Type | Description |
84+
| -------------- | :----------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------- |
85+
| **translateX** | `string[]` or `number[]` | Start and end translation on x-axis in `%`, `px`, `vw`or `vh`. If no unit is passed percent is assumed. Percent is based on the elements width. |
86+
| **translateY** | `string[]` or `number[]` | Start and end translation on y-axis in `%`, `px`, `vw`or `vh`. If no unit is passed percent is assumed. Percent is based on the elements height. |
87+
| **rotate** | `string[]` or `number[]` | Start and end rotation on z-axis in `deg`, `rad`, or `turn`. If no unit is passed `deg` is assumed. |
88+
| **rotateX** | `string[]` or `number[]` | Start and end rotation on x-axis in `deg`, `rad`, or `turn`. If no unit is passed `deg` is assumed. |
89+
| **rotateY** | `string[]` or `number[]` | Start and end rotation on y-axis in `deg`, `rad`, or `turn`. If no unit is passed `deg` is assumed. |
90+
| **rotateZ** | `string[]` or `number[]` | Start and end rotation on z-axis in `deg`, `rad`, or `turn`. If no unit is passed `deg` is assumed. |
91+
| **scale** | `number[]` | Start and end scale on x-axis and y-axis. |
92+
| **scaleX** | `number[]` | Start and end scale on x-axis. |
93+
| **scaleY** | `number[]` | Start and end scale on y-axis. |
94+
| **scaleZ** | `number[]` | Start and end scale on z-axis. |
95+
| **opacity** | `number[]` | Start and end opacity value. |
9696

9797
## Callback Props
9898

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /