Fix Page transitions by using a hacky FOUC trick
Seems to work though!
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user