Is it possible to create a transition on hover that toggles a nav li down with pure css?
I created a li
named Categorie. I have several categories in my database, so each category gets a new li
:
<ul id="categorie">
<li><a href="?control=bezoeker&action=categorie">Categorie</a>
<ul>
<?php foreach($categorieen as $categorie):?>
<li><a href="?control=bezoeker&action=category&aid=<?= $categorie->getId();?>">
<?= $categorie->getNaam();?></a></li>
<?php endforeach;?>
</ul>
</li>
</ul>
So I want to toggle 'Categorie' off and on hover on so you can see the all other sub-li's
I tried to add a transition: 500ms ease-out 1s;
on my hover, but it didn't work out. Is there another way to accomplish this? Or do I need to use jQuery?
My toggle is not a onClick, it's on hover, so this question is not a duplicate