Add debounce animation for explore more button

This commit is contained in:
Folyd 2022-11-27 16:04:12 +08:00
parent 060626d39d
commit 5b878300aa
2 changed files with 10 additions and 1 deletions

View file

@ -95,4 +95,13 @@
.explore-more, .demonstration-gif {
display: none;
}
}
.bounce {
animation: bounce 2s ease infinite;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
40% {transform: translateY(-30px);}
60% {transform: translateY(-15px);}
}

View file

@ -61,7 +61,7 @@
</section>
<img class="demonstration-gif" src="{{ get_url(path="demonstration.gif") }}" alt="demonstration-gif">
<div class="explore-more text"
<div class="explore-more text bounce"
onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})">
Explore More ⇩
</div>