Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wwj718/snap-spline-demo
https://github.com/wwj718/snap-spline-demo
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wwj718/snap-spline-demo
- Owner: wwj718
- Created: 2024-06-04T03:37:57.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-14T10:36:20.000Z (5 months ago)
- Last Synced: 2024-06-14T15:54:21.762Z (5 months ago)
- Language: JavaScript
- Homepage: https://wwj718.github.io/Snap-Spline-Demo/
- Size: 17.7 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spline Adapter
Refer to [Spline library for Snap!](https://wwj718.github.io/post/programming/snap-spline-en/)
## How it works?
Use [splinetool/react-spline](https://github.com/splinetool/react-spline) to interoperate with Spline project.
Use [postMessage](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)(dynatalk was built on it) to pass messages between Spline element(`import Spline from "@splinetool/react-spline";`) and Snap!.
## Development
`npm start`
## build and deploy
`npm run build`
### Deploy to Github Pages
Refer to [create-react-app Deployment: GitHub Pages](https://create-react-app.dev/docs/deployment/#github-pages)
The current project is deployed here: [https://wwj718.github.io/Snap-Spline-Demo/](https://wwj718.github.io/Snap-Spline-Demo/)