endStickyPos) {
promoImagePos = 'md:absolute md:left-0 md:w-full duration-0'
promoImageTop = sectionHeight - promoImageHeight;
} else if(window.pageYOffset > startStickyPos) {
if (window.pageYOffset < lastScrollTop){
// upscroll code
promoImagePos = 'md:fixed md:left-0 md:w-1/2 md:pr-4 duration-0';
} else {
promoImagePos = 'md:fixed md:left-0 md:w-1/2 md:pr-4 transition-[top] duration-500';
}
promoImageTop = headerInView;
} else {
promoImagePos = 'relative transition-[top] duration-500';
}
lastScrollTop = window.pageYOffset <= 0 ? 0 : window.pageYOffset; // For Mobile or negative scrolling
"
class="mb-16"
x-init=""
>
5 STARS
REAL CUSTOMER REVIEWS
Videos, Tweets, and Reviews inside! Learn why millions love WUNDERBROW.
Read More