Skip to content

Commit

Permalink
ScrollReveal animation added to the page
Browse files Browse the repository at this point in the history
  • Loading branch information
GazdagB committed Feb 21, 2024
1 parent 13e044e commit fc3f328
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap"
rel="stylesheet"
/>

<script src="https://unpkg.com/scrollreveal"></script>
<script src="nav.js" defer></script>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="index.js" defer></script>
<script src="https://unpkg.com/scrollreveal"></script>

</head>

<body>
Expand Down Expand Up @@ -268,6 +270,7 @@ <h2 class="header--primary">
/>
</div>
</section>

<section class="github">
<div class="github-banner">
<h2 class="header--primary">
Expand Down
18 changes: 14 additions & 4 deletions nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ document.addEventListener("scroll", ()=>{
header.classList.remove("scrolled");
}
}



}
)

Expand All @@ -53,5 +50,18 @@ window.addEventListener("resize", () => {
document.body.classList.remove("resize-animation-stopper");
}, 400);
});
//-------------------------------------------------------


//Scroll Reveal Animations
ScrollReveal().reveal('.hero', { duration: 1500, reset: true ,distance: "100px"})
ScrollReveal().reveal('.divider', { duration: 1500, reset: true,distance: "100px"})
ScrollReveal().reveal('.message', { duration: 1500 , reset: true,distance: "100px"})
ScrollReveal().reveal('.features', { duration: 1500 , reset: true,distance: "100px"})
ScrollReveal().reveal('.card__container', { duration: 1500 , reset: true,distance: "100px"})
ScrollReveal().reveal('.about', { duration: 1500 , reset: true,distance: "100px"})
ScrollReveal().reveal('.try-it', { duration: 1500 , reset: true,distance: "100px"})
ScrollReveal().reveal('.api', { duration: 1500 , reset: true,distance: "100px"})
ScrollReveal().reveal('.github', { duration: 1500 , reset: true,distance: "100px"})
ScrollReveal().reveal('.footer__container', { duration: 1500 , reset: true,distance: "100px"})
ScrollReveal().reveal('.footer__copyright', { duration: 1500 , reset: true,distance: "100px"})
//--------------------------------------------------------

0 comments on commit fc3f328

Please sign in to comment.