JSFiddle - React, Tailwind, and code Playground
by Josh Pullen
CSS
body {
background: black;
}
.App {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
}
JavaScript
/*
This interactive is basically just one giant SVG with interactivity
added using Preact.
It would probably be best to split things up into separate preact
components, but I was too lazy to do that initially. This should
definitely be cleaned up a bit before adding new features.
*/
import { html, render, useState, useEffect, useCallback, useMemo } from "https://unpkg.com/htm/preact/standalone.module.js";
const threeImage =...