Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Sayandeep003 authored Jun 5, 2023
1 parent 0147cac commit 9754796
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
16 changes: 16 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
window.addEventListener('load', function() {
// Hide the loading screen
var loadingScreen = document.getElementById('loading-screen');
loadingScreen.style.opacity = 0;

// Fade in the main screen
var mainScreen = document.getElementById('main-screen');
mainScreen.style.opacity = 1;
mainScreen.classList.remove('hidden');

// Remove the loading screen from the DOM after the fade-out animation
setTimeout(function() {
loadingScreen.parentNode.removeChild(loadingScreen);
}, 1000); // Adjust the delay as needed
});

24 changes: 24 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Loading screen styles */
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}

/* Main screen styles */
#main-screen {
opacity: 0;
transition: opacity 1s ease-in-out;
}

.hidden {
display: none;
}

Binary file added tenor.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9754796

Please sign in to comment.