mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-09-12 07:10:07 +02:00
animation on bubble hover
This commit is contained in:
parent
10b9a4ceb2
commit
7f6d575c16
@ -430,6 +430,8 @@ $(function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$(document).on('click', '#foldersContainer li', function (event) {
|
$(document).on('click', '#foldersContainer li', function (event) {
|
||||||
|
$('#foldersContainer .active').animate({left: '-=8px'}, 'fast');
|
||||||
|
|
||||||
// Deselect previous option ...
|
// Deselect previous option ...
|
||||||
$('#foldersContainer li').removeClass('active');
|
$('#foldersContainer li').removeClass('active');
|
||||||
$('#foldersContainer i').removeClass('icon-white');
|
$('#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');
|
||||||
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user