JSFiddle

  • Active Navigation Links on Scroll #148 is the latest revision

    This code adds the class "active" to the <a> tags with the class "link" when the element with the same ID as the HREF value is reached.

    // ADDS ACTIVE CLASS TO LINKS WHEN SECTION WITH THE SAME SELECTOR AS THE HREF IS REACHED (CLASS .LINK IS NEEDED ...