I've got that little piece of jQuery to load a htm file into div after you hover your mouse over a button. Here's how it looks like:
$(document).ready(function () {
$('#webd').mouseenter(function () {
$('#opis').load('portfolio/webdDescription.htm');
}
);
$('#webd').mouseout(function () {
$('#opis').load('portfolio/defaultDescription.htm');
}
);
});
Is there any way to make those transitions smooth? Like when you hover your mouse over button, the default text fades out and meanwhile another one fades in?
.animate()or.fadeIn(),.fadeOut()