I'm still growing in web development, so I hope this doesn't come out too "noob". I have a logo on a webpage I'd like to animate using a css library when its hovered on.
I'm using Dane Den's Animate.css library to implement the animations and I already enqueued the css in my theme's functions.php
file. At first I tried working with only the animation I needed like this:
@keyframes pulse {
/*The animations*/
}
#logo.table-cell img:hover {
-webkit-animation-name: pulse;
animation-name: pulse;
}
But this didn't work then I thought of calling the animation class I needed from the library on the logo class and that involved me trying to inherit css classes in a css class which wasn't possible.
This answer used a jquery way of getting it done and seemed like a way out but it didn't work too.
I might not be doing things the right way but I'm using the Custom CSS and JS fields I have with my wordpress site's theme.