@ssgoi/react 6.0.0 → 6.1.0
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 +3 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ import { fade } from "@ssgoi/react/view-transitions";
|
|
|
38
38
|
|
|
39
39
|
export default function App() {
|
|
40
40
|
return (
|
|
41
|
-
<Ssgoi config={{
|
|
41
|
+
<Ssgoi config={{ transitions: fade({ paths: ["/", "/about"] }) }}>
|
|
42
42
|
<div style={{ position: "relative" }}>{/* Your app */}</div>
|
|
43
43
|
</Ssgoi>
|
|
44
44
|
);
|
|
@@ -60,7 +60,7 @@ export default function HomePage() {
|
|
|
60
60
|
}
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
**That's it!** Your pages now transition smoothly with a fade effect.
|
|
63
|
+
**That's it!** Your configured pages now transition smoothly with a fade effect.
|
|
64
64
|
|
|
65
65
|
## Advanced Transitions
|
|
66
66
|
|
|
@@ -85,7 +85,6 @@ const config = {
|
|
|
85
85
|
// Pinterest-style image transitions
|
|
86
86
|
{ from: "/gallery", to: "/photo/*", transition: pinterest() },
|
|
87
87
|
],
|
|
88
|
-
defaultTransition: fade(),
|
|
89
88
|
};
|
|
90
89
|
```
|
|
91
90
|
|
|
@@ -235,7 +234,7 @@ export default function RootLayout({ children }) {
|
|
|
235
234
|
<body>
|
|
236
235
|
<Ssgoi
|
|
237
236
|
config={{
|
|
238
|
-
|
|
237
|
+
transitions: scroll({ paths: ["/", "/about"] }),
|
|
239
238
|
}}
|
|
240
239
|
>
|
|
241
240
|
<div style={{ position: "relative", minHeight: "100vh" }}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssgoi/react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "React bindings for SSGOI - Native app-like page transitions for React applications",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"unplugin": "^2.3.2",
|
|
68
68
|
"@babel/core": "^7.26.10",
|
|
69
|
-
"@ssgoi/core": "^6.
|
|
69
|
+
"@ssgoi/core": "^6.1.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__core": "^7.20.5",
|