Add class active on scroll. Vanilla JS

前端 未结 0 754
[愿得一人]
[愿得一人] 2021-02-12 13:15

I\'m new to vanilla js. I have a navbar with links to sections. I want to make the class active as soon as the section becomes active. If there are no active section, then remov

相关标签:
回答
  • 消灭零回复
提交回复
热议问题