Basically done with home page
This commit is contained in:
parent
3da46b8e0e
commit
e57305123d
16 changed files with 303 additions and 49 deletions
7
src/static/floater.js
Normal file
7
src/static/floater.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
window.addEventListener("scroll", function(){
|
||||
const floaters = document.querySelectorAll(".floater");
|
||||
const yPos = 0 - window.scrollY;
|
||||
for (const floater of floaters) {
|
||||
floater.style.top = -yPos/20 + "%";
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue