Brands
{
const brandLogoWrapper = document.querySelector('.brand-logo-wrapper');
if (!brandLogoWrapper) return;
const offset = 200;
const duration = 1500;
const startY = window.pageYOffset || document.documentElement.scrollTop || 0;
const targetY = Math.max(0, startY + brandLogoWrapper.getBoundingClientRect().top - offset);
const distance = targetY - startY;
if (distance === 0) return;
const easeInOutCubic = (t) => (t < 0.5
? 4 * t * t * t
: 1 - Math.pow(-2 * t + 2, 3) / 2
);
let startTime = null;
const step = (ts) => {
if (!startTime) startTime = ts;
const p = Math.min((ts - startTime) / duration, 1);
window.scrollTo(0, startY + distance * easeInOutCubic(p));
if (p < 1) requestAnimationFrame(step);
};
requestAnimationFrame(step);
})()
"
>
Discover more
Discover Now
Popular brands for you 11111
Currently in demand by other users
There are no product from this section.