page-transition 0.1.0-beta.58 → 0.1.0-beta.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -167,7 +167,7 @@ After navigation, the `exit` class is removed and the `enter` class is added. On
|
|
|
167
167
|
|
|
168
168
|
To access the page wrapper, overlay, overlay wrapper, and their respective items, use `useCssContext`.
|
|
169
169
|
```ts
|
|
170
|
-
import {
|
|
170
|
+
import { useCssContext } from "page-transition"
|
|
171
171
|
|
|
172
172
|
const {
|
|
173
173
|
pageWrapper,
|
|
@@ -175,7 +175,7 @@ const {
|
|
|
175
175
|
overlayWrapper,
|
|
176
176
|
overlayItems,
|
|
177
177
|
secondItems
|
|
178
|
-
} =
|
|
178
|
+
} = useCssContext()
|
|
179
179
|
```
|
|
180
180
|
|
|
181
181
|
#### CSS/SCSS Examples
|
|
@@ -397,7 +397,7 @@ items: [10, 10]
|
|
|
397
397
|
|
|
398
398
|
### Manual Mode
|
|
399
399
|
|
|
400
|
-
In manual mode, you can control the transition using `
|
|
400
|
+
In manual mode, you can control the transition using `useManualContext`.
|
|
401
401
|
|
|
402
402
|
|
|
403
403
|
After triggering the navigation, `state.current` is set to `exiting`. You can then call `resolveFn.current()` to proceed with the navigation.
|
|
@@ -410,6 +410,6 @@ Once `state.current` is set to `entering`, the navigation has occurred. After th
|
|
|
410
410
|
```ts
|
|
411
411
|
import { useManualContext } from "page-transition"
|
|
412
412
|
|
|
413
|
-
const { resolveFn, state } =
|
|
413
|
+
const { resolveFn, state } = useManualContext()
|
|
414
414
|
|
|
415
415
|
```
|