allow await + refactor locations
This commit is contained in:
parent
a02a48ac82
commit
98f91607cd
6 changed files with 243 additions and 293 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue