Currently, I am working on a project with thumbnails that animate upon hovering using jQuery. One of the challenges I have encountered is adding a nested div inside the current div being hovered over. This nested div should have a background color with some opacity so that you can still see a bit of the underlying div. Additionally, text within this nested div should be displayed.
While I have successfully added a border around the thumbnails using jQuery's addClass function, applying a background color and text to the added class seems to be causing issues. Can anyone provide guidance on where I might be making a mistake?
If you'd like to take a look at my code, here is an example:
$('.video-thumbnail').hover(function () {
$(this).animate({
top: '-15px'
}, 500);
$(this).show('video-overlay');
Thank you in advance for your help!