smooth things out
This commit is contained in:
@@ -189,11 +189,11 @@ class PageTransitions {
|
||||
const newContent = targetElement.innerHTML;
|
||||
|
||||
// Update the content container
|
||||
contentContainer.innerHTML = newContent;
|
||||
// Trigger removal of transition class after fetching data
|
||||
setTimeout(() => {
|
||||
this.removeTransitionClass(contentContainer);
|
||||
}, 300);
|
||||
contentContainer.innerHTML = newContent;
|
||||
|
||||
// Update the page title
|
||||
const newTitle = parsedData.querySelector('title');
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user