An open API service indexing awesome lists of open source software.

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✨

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)