Skip to content

Commit

Permalink
Merge pull request #2837 from Anjaliavv51/comspreveal
Browse files Browse the repository at this point in the history
Feat:Added of reveal elements on scroll
  • Loading branch information
huamanraj authored Aug 10, 2024
2 parents 4f77755 + 5edc179 commit d2d87b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions assets/html/comsp.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<link rel="stylesheet" href="../css/styles.css">

<script src="https://unpkg.com/scrollreveal"></script>


<style>
.close-button {
color: #aaa;
Expand Down Expand Up @@ -1347,5 +1351,6 @@ <h1>Privacy Notice</h1>
});
});
</script>
<script src="/assets/js/comsp.js"></script>
</body>
</html>
8 changes: 8 additions & 0 deletions assets/js/comsp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ScrollReveal({
//reset: true ,
distance: '1000px',
duration: 2500,
delay: 400
});
ScrollReveal().reveal('.section__title ,.section__subtitle', { delay: 400, origin: 'left' });
ScrollReveal().reveal('.spotlight__grid .spotlight__card', { delay: 700, origin: 'bottom' ,interval:300});

0 comments on commit d2d87b3

Please sign in to comment.