Implement basic background animation for closed screen.
This commit is contained in:
9
src/index.js
Normal file
9
src/index.js
Normal 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();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user