fix: onload animation tweaks

This commit is contained in:
saicaca committed 2024-03-13 01:32:54 +08:00
1 parent 2ff9b8544e
commit df30781cdc
11 files changed
+52 -21

No files matched your search

+4
View File
@@ -287,6 +287,10 @@ const setup = () => {
}
})
*/
// Remove the delay for the first time page load
window.swup.hooks.on('link:click', () => {
document.documentElement.style.setProperty('--content-delay', '0ms')
})
}
if (window.swup.hooks) {
setup()