Skip to main content

Añadir una capa overlay a un contendor utilizando jquery

Vamos a usar jQuery para este propósito.

img_overlayed.hover(function() {
if (!text_overlay.hasClass('animated')) {
text_overlay.dequeue().stop().slideDown(300);
}
}, function() {
text_overlay.addClass('animated').slideUp(300, function() {
text_overlay.removeClass('animated').dequeue();
})
}
);

 

Training courses

Face-to-face and online training for development and product teams.