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.
Files changed (2) hide show
  1. package/README.md +13 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -78,9 +78,16 @@ options={{
78
78
  ### `TransitionLink`
79
79
  #### Props
80
80
 
81
- |Prop|type|default|
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% 0 0 0);
206
+ clip-path: inset(100% -1px 0 -1px);
200
207
  }
201
208
  [data-transition].exit .overlay-item{
202
- clip-path: inset(0 0 0 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 0 100% 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}){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-transition",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.1.0-beta.4",
4
4
  "description": "A page transition library for the Next.js App Router.",
5
5
  "license": "MIT",
6
6
  "files": [