Skip to content

Commit

Permalink
added loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Git21221 committed Jul 25, 2023
1 parent 8fdbfcc commit 77ca6ad
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
9 changes: 8 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
-o-box-sizing: border-box;
box-sizing: border-box;
}

#preloader{
position: fixed;
height: 100vh;
width: 100%;
background: url(/img/SVKl.gif) no-repeat black;
background-size: 10%;
background-position: center;
}
.clearfix:before,
.clearfix:after {
display: table;
Expand Down
Binary file added img/SVKl.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
})(window, document, 'script', 'dataLayer', 'GTM-59R3T9Z9');</script>
<!-- End Google Tag Manager -->
<meta charset="UTF-8" />
<meta name="description" content="Explore our 3D virtual solar system and learn about planets in an interactive space exploration.">
<meta name="keywords" content="earth, space, moon, 3d-images 3d-animation, planets, Solar System, Virtual Solar System, Planet Models, Astronomy Visualization,Space Exploration, Educational Space Simulation, Celestial Bodies, Planetary Orbits,Astronomy App,Astronomical Visualization,Space Educational Tool,Learn About Planets,Outer Space Simulation,Solar System Exploration,Astronomical Models,Space Learning Experience,Planetary System Viewer" />
<meta name="description"
content="Explore our 3D virtual solar system and learn about planets in an interactive space exploration.">
<meta name="keywords"
content="earth, space, moon, 3d-images 3d-animation, planets, Solar System, Virtual Solar System, Planet Models, Astronomy Visualization,Space Exploration, Educational Space Simulation, Celestial Bodies, Planetary Orbits,Astronomy App,Astronomical Visualization,Space Educational Tool,Learn About Planets,Outer Space Simulation,Solar System Exploration,Astronomical Models,Space Learning Experience,Planetary System Viewer" />
<meta name="author" content="GOAT Elitte Coders(Rahul Das, Saikat Das)" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Virtual Galaxy - Explore planets</title>
Expand Down Expand Up @@ -97,13 +99,18 @@
</head>

<body>


<!-- loader -->
<div id="preloader"></div>
<!-- loader end -->


<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-59R3T9Z9" height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->


<!-- loader -->



Expand Down
9 changes: 8 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
// navbar triggering

const loader = document.getElementById("preloader");

window.addEventListener("load", () => {
loader.style.display = 'none';
})


// navbar triggering


function toggleMenu() {
Expand Down

0 comments on commit 77ca6ad

Please sign in to comment.