Implement basic 3d rendering.

This commit is contained in:
2019-03-08 16:40:22 +01:00
parent 12daff1f7d
commit f5344f3197
5 changed files with 47 additions and 23 deletions

View File

@@ -1,9 +1,9 @@
import {startClosedAnimation} from "./closed";
import "./open"
import {startOpenAnimation} from "./open";
window.addEventListener('load', function () {
if (document.body.classList.contains('open')) {
// TODO: leave it in HTML/CSS for now.
startOpenAnimation();
} else {
startClosedAnimation();
}