Implement basic background animation for closed screen.

This commit is contained in:
2019-03-03 17:22:29 +01:00
parent bfea8896de
commit ebe4e85fad
8 changed files with 148 additions and 2 deletions

9
src/index.js Normal file
View File

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