Skip to content

Commit

Permalink
Merge pull request #353 from pratikb64/page-routing-fix
Browse files Browse the repository at this point in the history
fix: page transition
  • Loading branch information
pratikb64 authored Feb 20, 2025
2 parents 63d6938 + c190e3b commit ea5b7c3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wiki/public/js/wiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ $(document).on("click", function (e) {
});

function loadWikiPage(url, pageElement, replaceState = false) {
$(".main-column, .page-toc").toggleClass("pulse");
// Update URL and history state
const historyMethod = replaceState ? "replaceState" : "pushState";
window[`history`][historyMethod](
Expand Down Expand Up @@ -268,6 +269,7 @@ function loadWikiPage(url, pageElement, replaceState = false) {
add_click_to_copy();
set_toc();
}
$(".main-column, .page-toc").toggleClass("pulse");
},
});
}
Expand Down
16 changes: 16 additions & 0 deletions wiki/public/scss/general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -877,3 +877,19 @@ ul[data-type="taskList"] {
background-color: white;
border: 1px solid var(--background-color);
}

@keyframes pulse {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}

.pulse {
animation: pulse 1.5s infinite;
}

0 comments on commit ea5b7c3

Please sign in to comment.