LIVE SITE

Infinite Scroll

Scroll, All interactions

import wixWindow from 'wix-window';

import { timeline } from 'wix-animations'


let bottomY;

$w.onReady(function () {

    

});


export function box1_viewportEnter(event) {

    wixWindow.getBoundingRect()

        .then((windowSizeInfo) => {

            bottomY = windowSizeInfo.scroll.y;

        });

    // $w('#box10').expand();

    wixWindow.scrollTo(0, 201, { "scrollAnimation": false });

}

export function box10_viewportEnter(event) {

    wixWindow.scrollTo(0, bottomY - 111, { "scrollAnimation": false });

}

Explore more Hover interactions 

Appearing Hot Dog

Jonathan Tsodikovitch

Shop Now

Appearing Hot Dog

Jonathan Tsodikovitch

Shop Now

Add a Title

Add a Title

Tags

Sites on X | © 2021 made with ❤️ on Editor X.