I have <div class="animate"> and in css:
div.animate:hover{
//do stuff
}
But would also like to invoke this via javascript.
Is it possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Instead of doing it this way, I suggest you just add a class to the other tag. In jQuery it would be:
I’d recommend using this method, because it handles both onMouseOver and onMouseOut (this way you can also remove the class when your mouse leaves $(‘.trigger-animate’) if you so desired using this syntax: