Jump to content
Search Community

davidtovt

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by davidtovt

  1. I found another bug. The offset of first section is always 0 and it not works correctly if we have content before the parallax sections, so we have to add the starting position to the sections.

     

    const contentContainer = document.querySelector('.content-container');

     

    if (currScroll > contentContainer.offsetTop + marker.offsetTop) {

×
×
  • Create New...