Skip to content
This repository was archived by the owner on Jan 11, 2020. It is now read-only.

Commit 2a162a0

Browse files
sourabh1031prateek76
authored andcommitted
disable scrolling on preload (#336)
1 parent 18537ec commit 2a162a0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@
238238
z-index: 3;
239239
}
240240

241+
.loading {
242+
overflow: hidden;
243+
height: 100vh;
244+
}
245+
241246
/* smooth scrolling */
242247
html{
243248
scroll-behavior: smooth;

index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
</head>
3939

40-
<body>
40+
<body class="loading">
4141
<a class=" ribbn-ref" href="https://github.com/opencodeiiita/Opencode-Collaborative-19" data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on GitHub</a>
4242
<button onclick="topFunction()" id="myBtn" title="Go to top" class="dark-scrl-btn"><i class="fas fa-arrow-up"></i></button>
4343
<!-- Navigation -->
@@ -929,9 +929,8 @@ <h1 class="text-left issue-title" >ISSUES</h1>
929929
$(document).ready(function() {
930930
setTimeout(() => {
931931
$(".spinner-wrapper").css({"display":"none"});
932-
932+
$('body').removeClass('loading');
933933
}, 4000);
934-
935934
});
936935
</script>
937936

0 commit comments

Comments
 (0)