Home >Web Front-end >JS Tutorial >Example code of underline animation in js
使用伪类 css
初始化 第一个
<script><br><br> $(".ddd .solid").hover( function(event){</p> <p>$(".solid.active").addClass('dis');</p> <p>}, function(event){</p> <p>$(".solid.active").removeClass('dis');<br><br> } );<br><br> </script>
The above is the detailed content of Example code of underline animation in js. For more information, please follow other related articles on the PHP Chinese website!