https://github.com/chadnpc/pseudo-3d-with-zdog
Creating flat 3d with zdog✨
https://github.com/chadnpc/pseudo-3d-with-zdog
Last synced: over 1 year ago
JSON representation
Creating flat 3d with zdog✨
- Host: GitHub
- URL: https://github.com/chadnpc/pseudo-3d-with-zdog
- Owner: chadnpc
- Created: 2023-06-20T14:50:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T16:35:29.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T01:31:40.507Z (over 1 year ago)
- Language: Astro
- Size: 2.52 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pseudo-3D-with-Zdog
Creating flat 3d with zdog✨
static rendering of [Zdog](https://zzz.dog/) scenes. The 3D scenes are rendered to svg which requires no JS.
[Demo](./src/components/Demo.astro)
## browser-env
zdog assumes its executing in a browser and calls into document. To make the astro static renderer happy with this you need to add browser-env to your index.astro page.
```typescript
import browserEnv from "browser-env";
browserEnv();
```
And due to issues with snowpack you need to add browser-env to your external module list. See [snowpack.config.js](./snowpack.config.js)