mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: add page loading (#274)
This commit is contained in:
1 parent
10e0600b0b
commit
4fad7a20bd
3 files changed
+15
No files matched your search
@@ -69,6 +69,7 @@ async function load() {
|
||||
shouldDelay: idx < 5, // only animate first 5 sections
|
||||
$element: $(section),
|
||||
}));
|
||||
$('.page-loader').hide();
|
||||
console.log('done! %d ms', new Date().getTime() - start.getTime());
|
||||
for (const { $element, shouldDelay } of sections) {
|
||||
$element.addClass('visible');
|
||||
|
||||
Reference in new issue
Block a user