Jump to content
Search Community

Fedya

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Fedya

  1. two days later I did it. I wonder what it didn’t work .... maybe I made a mistake somewhere before!

     

    I've already seen such a solution on the forum. but can anyone come in handy

     

    barba.hooks.beforeLeave(() => {
      ScrollTrigger.getAll().forEach(trigger => trigger.kill())
    });
    barba.hooks.after(() => {
      initScrolling();
    });
  2. sorry. I mean they are not deleted in html if you look in devtool. I've tried all the barba hooks but the triggers remain.

     

    that's why I created triggers separately from animation. they are so removed, but not created and there is no control over the animation.

     

    anyway, thank you very much for trying to help me.

  3. Yes, I did such a standard approach)
    but I would also like to add the onEnterBack animation to this trigger.

     

    And if it's not hard for you to look at the codepen code in the comment. where I kill the trigger and init again.
    For some reason, all triggers are not deleted. Already like the whole forum has read = (but still did not understand how to do it right!

×
×
  • Create New...