allow await + refactor locations

This commit is contained in:
Felix Roos 2022-03-21 19:47:58 +01:00
parent a02a48ac82
commit 98f91607cd
6 changed files with 243 additions and 293 deletions

View file

@ -37,6 +37,12 @@ export const backgroundImage = function (src, animateOptions = {}) {
frame((_, t) =>
funcOptions.forEach(([option, value]) => {
handleOption(option, value(t));
})
}),
);
};
export const cleanup = () => {
const container = document.getElementById('code');
container.style = '';
container.className = 'grow relative'; // has to match App.tsx
};