Jump to content
Search Community

JeremyLove

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by JeremyLove

  1. @OSUblake

     

    There seems to be a problem with the codepen when on this page. When you click edit the codepen you should be able to see the scrolling functionality. Basically what I am trying to do is add a class on the current div as you as you leave it. onLeave and onLeaveBack seem to trigger my function too late. So am i trying to do this by utilizing onUpdate since it triggers my function instantly. I need to use the isActive prop to get the current section I am leaving and add the class to it. I can change it if it doesnt target the right div.

     

    Does this kinda make sense?

×
×
  • Create New...