Use clamping to help with responsive font size.
This commit is contained in:
parent
7029c8f944
commit
8ba8d480ce
6 changed files with 70 additions and 46 deletions
|
|
@ -84,10 +84,3 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
slide.innerHTML = `<a href="${links[index]}">${slide.innerHTML}</a>`;
|
||||
});
|
||||
});
|
||||
|
||||
// Hide the scroll icon when at the end of the page
|
||||
window.addEventListener('scroll', function () {
|
||||
if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
|
||||
document.getElementById('down-arrow').classList.add('hidden');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue