nav-state
v1.0.4
Published
Highlight an element based on current state.
Downloads
1
Readme
nav-state
Highlight an element based on a state.
Examples
<a class="js-nav-state" href="/">
Home
</a>
<li>
<a class="js-nav-state" href="/">
Home
</a>
</li>
<div class="js-nav-state" data-nav-state-href="/">
Home
</div>
<link rel="up" href="/pages/foo">
<link rel="up" href="/pages/foo-bar">
<a class="js-nav-state" href="/pages/foo">
Foo
</a>
<a class="js-nav-state" href="/pages/foo-bar">
Foo bar
</a>