Jump to content
Search Community

DmitriyRogkov

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by DmitriyRogkov

  1. 25 minutes ago, akapowl said:

    in your initSmoothScroll function.

     

    So you can either simply just change the element you are targetting in your scrollerProxy to be the same you are targetting when creating your locomotive-scroll instance, or alternatively just remove the old barba-container at the proper time since you don't need it for your type of page-transition anyway.


    Very well! Thanks!

    It was a small mistake that I unfortunately failed to notice. I replaced my '.smooth-scroll' with the value smoothScroll. This solved a number of bugs. But the main one remained - the end marker that should have been at the end of the light section is still not correctly placed, namely in the middle of the section.

     

    image.png.20a4a5534f7a101999cc297a9af364de.png


    Maybe the marker is not placed correctly, because the light section has a block with a horizontal scroll, but the whole block has overflow: hidden. I don't think it should affect the positioning of the pulleys, but it does.

  2. Thank you for your reply! Tried several more options.
     

    I realized that I can't use setTimeout here, because it affects the performance of Barba JS a lot. I took it and the header started working normally, the class is added after the barba transition, but now a new problem has appeared, which is directly related to the ScrollTriger. The END marker of the white section should be at the very end, but for some reason it is placed in the middle. How to set the delay, I don't know, because again, it is not desirable to use setTimeout.

    image.thumb.png.38a452020ea1d39005117765951bb9be.png

  3. Hi all. I've been trying to fix the bug for a couple of days now, searching the web for an answer, but nothing helps. The essence of the problem is as follows - after barba transition scrolltrigger markers does not move with locomotive scroll. I will throw my code below.

    Thank you in advance for your kind help in solving this bug! I will be grateful to everyone!

    app.js

×
×
  • Create New...