Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] <description>Adding preloader to child therapy page #556

Open
Vanshiii203 opened this issue Oct 24, 2022 · 1 comment
Open

[FEATURE] <description>Adding preloader to child therapy page #556

Vanshiii203 opened this issue Oct 24, 2022 · 1 comment
Assignees
Labels

Comments

@Vanshiii203
Copy link
Contributor

Description

I would like to add to preloader child therapy page

Screenshots

No response

Additional information

No response

@AdityaPrasad275
Copy link

AdityaPrasad275 commented Oct 8, 2023

Hello there @Vanshiii203 ! I followed a quick yt tutorial for this and have the following changes for this ->

childTherapy.html -

<body>
+ <div class="preloader">
+   </div>

<!-- Navbar Section -->
    <nav>
  </footer>
  <script src="childTherapy.js"></script>

+ <script>
+    var loader = document.querySelector(".preloader");

+   window.addEventListener("load", function(){
+     loader.style.display = "none";
+    });
+ </script>

  </body>

childTherapy.css (all additions)

.preloader {
  height: 100vh;
  width: 100%; 
  background: #1C1B1B url(../images/comp_4.gif) no-repeat center center; 
  position: fixed; 
  z-index: 100;
  background-size: 25%;
}

Used a simple pre loader gif and tailored the background with respect to the gif.

Does this meet the specifications / demands for the feature? Should i open a PR with these changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants