I'd like to understand and know if it's possible to trigger a hover if a HTML dom contains a specific class.
So far from what I researched, it seems to be impossible, but here is a fiddle with the example trying to add a pink color to the text2 via CSS.
$(document).ready(function(){
if($(".aside-navigation > ul li").hasClass("nav-active") ) {
$('.nav-active i').trigger('mouseenter');
}
});
.nav-active i:hover { color: pink; }
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="aside-navigation">
<ul>
<li class="">
<i>text</i>
</li>
<li class="nav-active">
<i>text 2 (hover here)</i>
</li>
</ul>
</div>