Home >Web Front-end >JS Tutorial >Use jQuery toggleClass to achieve color change when the mouse is moved_jquery

Use jQuery toggleClass to achieve color change when the mouse is moved_jquery

WBOY
WBOYOriginal
2016-05-16 16:48:131514browse

Color change effect of button moving up

Copy code The code is as follows:


button

<script> <br>$('.round-corner-btn').hover(function(){ <br>$(this).toggleClass('btn-hover ', 200); <br>}) <br></script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn