I recently came across this codepen showcasing a CSS transition for achieving a sliding effect on hover, which can be found here. However, I am having trouble implementing it in my Bootstrap navigation bar. Could it be incompatible with the menu in Bootstrap?
<!-- Static navbar -->
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.php">Index</a></li>
<li><a href="#">Link1</a></li>
<li><a href="#">Link2</a></li>
<li><a href="#">Link3</a></li>
<li class="dropdown">
<a href="#.php" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">LinkTest<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Linktest 2</a></li>
<li><a href="#">Linktest 3</a></li>
</ul>
<li><a href="kontakt.php">Kontakt</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>