page-transition 0.1.0-beta.3 → 0.1.0-beta.4
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 +13 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,9 +78,16 @@ options={{
|
|
|
78
78
|
### `TransitionLink`
|
|
79
79
|
#### Props
|
|
80
80
|
|
|
81
|
-
|Prop|
|
|
82
|
-
|
|
83
|
-
| href | string | - |
|
|
81
|
+
|Prop|Type|Default|Required
|
|
82
|
+
|---|---|---|---|
|
|
83
|
+
| href | string | - | Yes |
|
|
84
|
+
| className | string | - | - |
|
|
85
|
+
| scroll | boolean | true | - |
|
|
86
|
+
| prefetch | "auto" \| null | null | - |
|
|
87
|
+
| onClick | (e: React.MouseEvent)=>void | - | - |
|
|
88
|
+
|
|
89
|
+
**Prop Descriptions**
|
|
90
|
+
TransitionLink uses the Next.js Link component internally. For details about navigation behavior and supported props, refer to the official Next.js documentation.
|
|
84
91
|
|
|
85
92
|
**Description**
|
|
86
93
|
Triggers the transition.
|
|
@@ -196,10 +203,10 @@ overlayCount: 10
|
|
|
196
203
|
background: black;
|
|
197
204
|
transition: none;
|
|
198
205
|
will-change: clip-path;
|
|
199
|
-
clip-path: inset(100%
|
|
206
|
+
clip-path: inset(100% -1px 0 -1px);
|
|
200
207
|
}
|
|
201
208
|
[data-transition].exit .overlay-item{
|
|
202
|
-
clip-path: inset(0
|
|
209
|
+
clip-path: inset(0 -1px 0 -1px);
|
|
203
210
|
transition: clip-path 1.0s ease;
|
|
204
211
|
@for $i from 0 to 10{
|
|
205
212
|
&:nth-child(#{$i+1}){
|
|
@@ -208,7 +215,7 @@ overlayCount: 10
|
|
|
208
215
|
}
|
|
209
216
|
}
|
|
210
217
|
[data-transition].enter .overlay-item{
|
|
211
|
-
clip-path: inset(0
|
|
218
|
+
clip-path: inset(0 -1px 100% -1px);
|
|
212
219
|
transition: clip-path 1.0s ease;
|
|
213
220
|
@for $i from 0 to 10{
|
|
214
221
|
&:nth-child(#{$i+1}){
|