animation on bubble hover

This commit is contained in:
Ezequiel Bergamaschi 2014-02-07 06:05:44 -03:00
parent 10b9a4ceb2
commit 7f6d575c16

View File

@ -430,6 +430,8 @@ $(function () {
};
$(document).on('click', '#foldersContainer li', function (event) {
$('#foldersContainer .active').animate({left: '-=8px'}, 'fast');
// Deselect previous option ...
$('#foldersContainer li').removeClass('active');
$('#foldersContainer i').removeClass('icon-white');
@ -606,3 +608,15 @@ function linkLabelToMindmap(mapIds, label) {
}
});
}
//animations...
$(document).on('mouseenter', '#foldersContainer li[class!="nav-header"]', function (event) {
if ($(this).attr('class') != 'active') {
$(this).animate({left: '+=8px'}, 'fast');
}
});
$(document).on('mouseleave', '#foldersContainer li[class!="active"][class!="nav-header"]', function (event) {
$(this).animate({left: '-=8px'}, 'fast');
});