Section 1

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the indtypesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Section 2

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the indtypesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Section 3

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the indtypesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Section 4

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the indtypesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Section 5

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the indtypesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
body{
  overflow-x:hidden;
}

        const horizontalScroll = document.getElementById('horizontal-scroll');
        const horizontalContainer = document.getElementById('horizontal-container');

        window.addEventListener('scroll', () => {
            const containerRect = horizontalContainer.getBoundingClientRect();
            const containerHeight = containerRect.height;
            const viewportHeight = window.innerHeight;
            const scrollPosition = -containerRect.top;

            if (scrollPosition >= 0 && scrollPosition <= containerHeight) {
                const progress = Math.min(1, scrollPosition / (containerHeight - viewportHeight));
                const maxScroll = horizontalScroll.scrollWidth - horizontalScroll.clientWidth;
                horizontalScroll.style.transform = `translateX(-${maxScroll * progress}px)`;
            } else if (scrollPosition < 0) {
                horizontalScroll.style.transform = 'translateX(0)';
            }
        });