frio: a short contact informations - better fadeOut handling

This commit is contained in:
rabuzarus 2016-06-11 01:40:28 +02:00
parent 3c49a410e5
commit 70f97a3536
1 changed files with 4 additions and 2 deletions

View File

@ -126,8 +126,10 @@ $(document).ready(function(){
$(".vcard .p-addr").scrollspy({
min: $(".vcard .p-addr").position().top - 50,
onLeaveTop: function onLeave(element) {
$("#vcard-short-info").appendTo("#vcard-short-info-wrapper");
$("#vcard-short-info").fadeOut(500);
$("#vcard-short-info").fadeOut(500, function () {
$("#vcard-short-info").appendTo("#vcard-short-info-wrapper");
});
},
onEnter: function(element) {