fix: onload animation tweaks
This commit is contained in:
1 parent
2ff9b8544e
commit
df30781cdc
11 files changed
+52
-21
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user