0
Skip to Content
ASPEKT
ASPEKT
ASPEKT
ASPEKT
ASPEKT
 
adios pro.png
 
 
boston 10.png
 
 
prime x.png

 

 
 
 

 
 
 
 
Featured
Why is Running Culture Important?
Dec 20, 2022
Why is Running Culture Important?
Dec 20, 2022
Dec 20, 2022
10 Things You Might Not Know About Nike Pegasus
Dec 20, 2022
10 Things You Might Not Know About Nike Pegasus
Dec 20, 2022
Dec 20, 2022
WHAT IS EKIDEN?
Dec 16, 2022
WHAT IS EKIDEN?
Dec 16, 2022
Dec 16, 2022
Comeback 5000
Apr 16, 2022
Comeback 5000
Apr 16, 2022
Apr 16, 2022
Running form assessment - What is the right race day shoe for me?
Mar 30, 2022
Running form assessment - What is the right race day shoe for me?
Mar 30, 2022
Mar 30, 2022
Tokyo Marathon - what makes it so special?
Mar 3, 2022
Tokyo Marathon - what makes it so special?
Mar 3, 2022
Mar 3, 2022
Norda SS22
Mar 1, 2022
Norda SS22
Mar 1, 2022
Mar 1, 2022
Nike Fast Pack is Back
Feb 25, 2022
Nike Fast Pack is Back
Feb 25, 2022
Feb 25, 2022
Iconic Running Moments of 2021
Jan 3, 2022
Iconic Running Moments of 2021
Jan 3, 2022
Jan 3, 2022
Saysky
Dec 17, 2021
Saysky
Dec 17, 2021
Dec 17, 2021
 

 

document.addEventListener("DOMContentLoaded", function() { // Create a logo image element var logoImg = document.createElement("img"); // Set the source of the image logoImg.src = "https://static1.squarespace.com/static/5e4e47ce9bf2bf37590e40d2/t/65cda73b2cf50935b65e75b8/1707976507765/aspectLogo+web.png"; logoImg.alt = "Logo"; // Alt text for accessibility logoImg.id = "custom-logo"; // Assign an ID for styling // Append the image to the body document.body.appendChild(logoImg); // Get the gallery container var galleryContainer = document.getElementById("collection-65ccb04310e1515abbde9c07"); // Add scroll event listener window.addEventListener("scroll", function() { var scrollPosition = window.pageYOffset || document.documentElement.scrollTop; // Calculate the maximum scroll position until the logo reaches the footer var maxScroll = galleryContainer.offsetTop + galleryContainer.offsetHeight - window.innerHeight; // Calculate the position of the logo relative to the gallery container var logoPosition = scrollPosition - galleryContainer.offsetTop; // If the logo is within the gallery container if (scrollPosition <= maxScroll) { logoImg.style.position = "absolute"; logoImg.style.top = logoPosition + "px"; } else { logoImg.style.position = "fixed"; logoImg.style.top = maxScroll + "px"; } }); });