-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2837 from Anjaliavv51/comspreveal
Feat:Added of reveal elements on scroll
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -1347,5 +1351,6 @@ <h1>Privacy Notice</h1> | |
}); | ||
}); | ||
</script> | ||
<script src="/assets/js/comsp.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}); |