Fix Page transitions by using a hacky FOUC trick

Seems to work though!
This commit is contained in:
2022-01-18 14:22:26 +01:00
parent b5b4b126c9
commit cffef1835f
5 changed files with 82 additions and 58 deletions

View File

@@ -56,6 +56,14 @@ export const capitalizeFirstLetter = (string: string) => {
}
/**
* Create a delay
*/
export function sleep (milliseconds: number) {
return new Promise(resolve => setTimeout(resolve, milliseconds))
}
/**
* Linear Interpolation
*/