I've implemented the Animate.css library by Daniel Eden, which I obtained from this source. Utilizing the animated (typeOfAnimation)
class allows me to easily animate elements on my website.
Below is a snippet of my HTML
:
<button onmouseover="makeEnglishPulse()" id="english" class="animated bounceInRight">// English</button>
And this is my JavaScript
code:
function makeEnglishPulse() {
document.getElementById("english").class = "animated pulse";
}
While the button bounces in upon loading the page, it fails to pulse when hovering over it, despite the class being updated. Any suggestions provided should be limited to JavaScript
or HTML
.
Thank you!