mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-14 23:57:07 +00:00
Add debounce animation for explore more button
This commit is contained in:
parent
060626d39d
commit
5b878300aa
2 changed files with 10 additions and 1 deletions
|
@ -96,3 +96,12 @@
|
||||||
display: none;
|
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);}
|
||||||
|
}
|
2
docs/templates/index.html
vendored
2
docs/templates/index.html
vendored
|
@ -61,7 +61,7 @@
|
||||||
</section>
|
</section>
|
||||||
<img class="demonstration-gif" src="{{ get_url(path="demonstration.gif") }}" alt="demonstration-gif">
|
<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'})">
|
onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})">
|
||||||
Explore More ⇩
|
Explore More ⇩
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue